diff options
author | Thiago Pinto <tapgyn@gmail.com> | 2015-10-27 03:34:07 -0200 |
---|---|---|
committer | Thiago Pinto <tapgyn@gmail.com> | 2015-10-31 01:16:38 -0200 |
commit | a9f9e1dd98cc2dd161d51d6902aac90b275fee05 (patch) | |
tree | 54d5ca9b8eb1f4c447ae692e7665d279a4942ccf /railties/lib | |
parent | e76c38ef1047ad3ffb25c1c639c38432a9228796 (diff) | |
download | rails-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.rb | 2 |
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 |