aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
authorThiago Pinto <tapgyn@gmail.com>2015-10-27 03:34:07 -0200
committerThiago Pinto <tapgyn@gmail.com>2015-10-31 01:16:38 -0200
commita9f9e1dd98cc2dd161d51d6902aac90b275fee05 (patch)
tree54d5ca9b8eb1f4c447ae692e7665d279a4942ccf /railties/lib
parente76c38ef1047ad3ffb25c1c639c38432a9228796 (diff)
downloadrails-a9f9e1dd98cc2dd161d51d6902aac90b275fee05.tar.gz
rails-a9f9e1dd98cc2dd161d51d6902aac90b275fee05.tar.bz2
rails-a9f9e1dd98cc2dd161d51d6902aac90b275fee05.zip
Route generator should be idempotent - closes #22082
Diffstat (limited to 'railties/lib')
-rw-r--r--railties/lib/rails/generators/actions.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/actions.rb b/railties/lib/rails/generators/actions.rb
index b4356f71e0..5bbd2f1aed 100644
--- a/railties/lib/rails/generators/actions.rb
+++ b/railties/lib/rails/generators/actions.rb
@@ -235,7 +235,7 @@ module Rails
sentinel = /\.routes\.draw do\s*\n/m
in_root do
- inject_into_file 'config/routes.rb', " #{routing_code}\n", { after: sentinel, verbose: false, force: true }
+ inject_into_file 'config/routes.rb', " #{routing_code}\n", { after: sentinel, verbose: false, force: false }
end
end