diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2012-01-07 19:13:14 +0100 |
---|---|---|
committer | Piotr Sarnacki <drogus@gmail.com> | 2012-01-07 19:14:27 +0100 |
commit | 3d2c28e012c4fa53e65860ad262be49defdf5ecc (patch) | |
tree | bd89be0c8bb789df5451ce71e78615ac25baa3a2 /railties/lib/rails | |
parent | 8ac53db5eedca8f2605ef7f91bbc956018ae1c50 (diff) | |
download | rails-3d2c28e012c4fa53e65860ad262be49defdf5ecc.tar.gz rails-3d2c28e012c4fa53e65860ad262be49defdf5ecc.tar.bz2 rails-3d2c28e012c4fa53e65860ad262be49defdf5ecc.zip |
No need to check for 'draw do |map|' anymore
Diffstat (limited to 'railties/lib/rails')
-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 7e7d54e6ed..45f55a2a0a 100644 --- a/railties/lib/rails/generators/actions.rb +++ b/railties/lib/rails/generators/actions.rb @@ -243,7 +243,7 @@ module Rails # def route(routing_code) log :route, routing_code - sentinel = /\.routes\.draw do(?:\s*\|map\|)?\s*$/ + sentinel = /\.routes\.draw do\s*$/ in_root do inject_into_file 'config/routes.rb', "\n #{routing_code}\n", { :after => sentinel, :verbose => false } |