Module: Rails::Initializer

Defined in:
lib/rails/deprecation.rb

Class Method Summary collapse

Class Method Details

.run(&block) ⇒ Object


6
7
8
9
10
# File 'lib/rails/deprecation.rb', line 6

def self.run(&block)
  klass = Class.new(Rails::Application)
  klass.instance_exec(klass.config, &block)
  klass.initialize!
end