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:
parent
f38e2e0335
commit
0045f37681
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue