Skip to content
This repository
Browse code

No need to check for 'draw do |map|' anymore

  • Loading branch information...
commit 3d2c28e012c4fa53e65860ad262be49defdf5ecc 1 parent 8ac53db
Piotr Sarnacki drogus authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  railties/lib/rails/generators/actions.rb
2  railties/lib/rails/generators/actions.rb
@@ -243,7 +243,7 @@ def capify!
243 243 #
244 244 def route(routing_code)
245 245 log :route, routing_code
246   - sentinel = /\.routes\.draw do(?:\s*\|map\|)?\s*$/
  246 + sentinel = /\.routes\.draw do\s*$/
247 247
248 248 in_root do
249 249 inject_into_file 'config/routes.rb', "\n #{routing_code}\n", { :after => sentinel, :verbose => false }

0 comments on commit 3d2c28e

Please sign in to comment.
Something went wrong with that request. Please try again.