diff options
author | José Valim <jose.valim@gmail.com> | 2009-06-17 19:59:37 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-06-19 16:11:54 +0200 |
commit | cd05ed6711f0dbf4434b81d4662c6bc489f379de (patch) | |
tree | 31ebda63e570b5779706219b1403ed226e60709f /railties/lib | |
parent | e0a4d8be93b1bfa17cbf1fb87947d7b12049ddc7 (diff) | |
download | rails-cd05ed6711f0dbf4434b81d4662c6bc489f379de.tar.gz rails-cd05ed6711f0dbf4434b81d4662c6bc489f379de.tar.bz2 rails-cd05ed6711f0dbf4434b81d4662c6bc489f379de.zip |
Do not show status when calling gsub_file or append_file.
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/generator/actions.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/lib/generator/actions.rb b/railties/lib/generator/actions.rb index feb31b9995..8440e50733 100644 --- a/railties/lib/generator/actions.rb +++ b/railties/lib/generator/actions.rb @@ -81,12 +81,12 @@ module Rails in_root do if options[:env].nil? - gsub_file 'config/environment.rb', /(#{Regexp.escape(sentinel)})/mi do |match| + gsub_file 'config/environment.rb', /(#{Regexp.escape(sentinel)})/mi, false do |match| "#{match}\n " << data end else Array.wrap(options[:env]).each do|env| - append_file "config/environments/#{env}.rb", "\n#{data}" + append_file "config/environments/#{env}.rb", "\n#{data}", false end end end @@ -252,7 +252,7 @@ module Rails sentinel = 'ActionController::Routing::Routes.draw do |map|' in_root do - gsub_file 'config/routes.rb', /(#{Regexp.escape(sentinel)})/mi do |match| + gsub_file 'config/routes.rb', /(#{Regexp.escape(sentinel)})/mi, false do |match| "#{match}\n #{routing_code}\n" end end |