1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

we never call url_for with a block, so rm

This commit is contained in:
Aaron Patterson 2014-05-13 17:05:32 -07:00
parent 33d6e3be62
commit 760aa3b52b

View file

@ -667,7 +667,6 @@ module ActionDispatch
path_options = options.dup path_options = options.dup
RESERVED_OPTIONS.each { |ro| path_options.delete ro } RESERVED_OPTIONS.each { |ro| path_options.delete ro }
path_options = yield(path_options) if block_given?
path, params = generate(path_options, recall || {}) path, params = generate(path_options, recall || {})
params.merge!(options[:params] || {}) params.merge!(options[:params] || {})