Module: Rails3::Assist::File::Application::Methods

Included in:
Rails3::Assist::File::Application, Rails3::Assist::File::Application
Defined in:
lib/rails3_assist/file/application.rb

Instance Method Summary collapse

Instance Method Details

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



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

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