Module: RailsAssist::File::Application::Methods

Included in:
RailsAssist::File::Application, RailsAssist::File::Application
Defined in:
lib/rails_assist/file/application.rb

Instance Method Summary collapse

Instance Method Details

#insert_application_config(statement = nil, &block) ⇒ Object



6
7
8
9
# File 'lib/rails_assist/file/application.rb', line 6

def insert_application_config statement=nil, &block
  statement = block ? yield : "config.#{statement}"
  application_file.insert statement, :after => 'Rails::Application'
end