Class: Rails::Initializer
- Inherits:
-
Object
- Object
- Rails::Initializer
- Defined in:
- lib/harker/rails_configuration.rb
Class Method Summary collapse
Class Method Details
.run(command = :process, configuration = Rails::Configuration.new) {|configuration| ... } ⇒ Object
29 30 31 32 33 34 35 |
# File 'lib/harker/rails_configuration.rb', line 29 def self.run(command = :process, configuration = Rails::Configuration.new) yield configuration if block_given? Harker.configure(configuration) initializer = new configuration initializer.send(command) initializer end |