Module: ActionController::Dependencies

Defined in:
lib/action_controller/dependencies.rb

Overview

:nodoc:

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.append_features(base) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/action_controller/dependencies.rb', line 7

def self.append_features(base)
  super

  base.class_eval do
    # When turned on (which is default), all dependencies are included using "load". This mean that any change is instant in cached
    # environments like mod_ruby or FastCGI. When set to false, "require" is used, which is faster but requires server restart to
    # be effective.
    @@reload_dependencies = true
    cattr_accessor :reload_dependencies
  end

  base.class_eval { class << self; alias_method :inherited_without_model, :inherited; end }

  base.extend(ClassMethods)
end