lib/rails/generators/actions.rb in railties-4.2.3 vs lib/rails/generators/actions.rb in railties-4.2.4.rc1
- old
+ new
@@ -1,6 +1,5 @@
-require 'open-uri'
require 'rbconfig'
module Rails
module Generators
module Actions
@@ -77,14 +76,14 @@
#
# If options <tt>:env</tt> is specified, the line is appended to the corresponding
# file in <tt>config/environments</tt>.
#
# environment do
- # "config.autoload_paths += %W(#{config.root}/extras)"
+ # "config.action_controller.asset_host = 'cdn.provider.com'"
# end
#
# environment(nil, env: "development") do
- # "config.autoload_paths += %W(#{config.root}/extras)"
+ # "config.action_controller.asset_host = 'localhost:3000'"
# end
def environment(data=nil, options={})
sentinel = /class [a-z_:]+ < Rails::Application/i
env_file_sentinel = /Rails\.application\.configure do/
data = yield if !data && block_given?