Method: Rails::Application#initializer
- Defined in:
- railties/lib/rails/application.rb
#initializer(name, opts = {}, &block) ⇒ Object
Sends the initializers to the initializer method defined in the Rails::Initializable module. Each Rails::Application class has its own set of initializers, as defined by the Initializable module.
354 355 356 |
# File 'railties/lib/rails/application.rb', line 354 def initializer(name, opts = {}, &block) self.class.initializer(name, opts, &block) end |