Flowdock
method

environment

Importance_1
Ruby on Rails latest stable (v4.2.7) - 0 notes - Class: Rails::Generators::Actions
environment(data=nil, options={}) 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.action_controller.asset_host = 'cdn.provider.com'"
end

environment(nil, env: "development") do
  "config.action_controller.asset_host = 'localhost:3000'"
end
Show source
Register or log in to add new notes.