File: view_component.rb

package info (click to toggle)
ruby-view-component 4.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 472 kB
  • sloc: ruby: 2,278; makefile: 4
file content (29 lines) | stat: -rw-r--r-- 652 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# frozen_string_literal: true

require "action_view"
require "active_support/dependencies/autoload"
require "view_component/version"

module ViewComponent
  extend ActiveSupport::Autoload

  autoload :Base
  autoload :Compiler
  autoload :CompileCache
  autoload :Config
  autoload :Deprecation
  autoload :InlineTemplate
  autoload :Instrumentation
  autoload :Preview
  autoload :Translatable

  if defined?(Rails.env) && Rails.env.test?
    autoload :TestHelpers
    autoload :SystemSpecHelpers
    autoload :SystemTestHelpers
    autoload :TestCase
    autoload :SystemTestCase
  end
end

require "view_component/engine" if defined?(Rails::Engine)