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

Whoops. We meant to switch from returning to tap, not vice versa

This commit is contained in:
Carlhuda 2010-03-08 12:30:51 -08:00
parent f38e2e0335
commit 0045f37681

View file

@ -85,7 +85,7 @@ module ActionDispatch
end
def requirements
@requirements ||= returning(@options[:constraints] || {}) do |requirements|
@requirements ||= (@options[:constraints] || {}).tap do |requirements|
requirements.reverse_merge!(@scope[:constraints]) if @scope[:constraints]
@options.each { |k, v| requirements[k] = v if v.is_a?(Regexp) }
end