Flowdock
method

environment

Importance_1
v4.0.2 - Show latest stable - 0 notes - Class: Rails::Generators::Actions
environment(data=nil, options={}, &block) public

Adds a line inside the Application class for config/application.rb.

If options :env is specified, the line is appended to the corresponding file in config/environments.

environment do
  "config.autoload_paths += %W(#{config.root}/extras)"
end

environment(nil, env: "development") do
  "config.autoload_paths += %W(#{config.root}/extras)"
end
Show source
Register or log in to add new notes.