diff options
author | Joshua Peek <josh@joshpeek.com> | 2008-07-28 13:38:20 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-07-28 13:38:20 -0500 |
commit | e0513e33c4da60255e7c1aa71babcc9414f26858 (patch) | |
tree | efe4d45c74db48b4107a650341d13d10f2451317 /actionpack/lib/action_controller/routing/route.rb | |
parent | 6e754551254a8cc64e034163f5d0dc155b450388 (diff) | |
download | rails-e0513e33c4da60255e7c1aa71babcc9414f26858.tar.gz rails-e0513e33c4da60255e7c1aa71babcc9414f26858.tar.bz2 rails-e0513e33c4da60255e7c1aa71babcc9414f26858.zip |
Routing whitespace cleanup
Diffstat (limited to 'actionpack/lib/action_controller/routing/route.rb')
-rw-r--r-- | actionpack/lib/action_controller/routing/route.rb | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/actionpack/lib/action_controller/routing/route.rb b/actionpack/lib/action_controller/routing/route.rb index a0d108ba03..a05c8c10ac 100644 --- a/actionpack/lib/action_controller/routing/route.rb +++ b/actionpack/lib/action_controller/routing/route.rb @@ -226,15 +226,14 @@ module ActionController end end - protected - def requirement_for(key) - return requirements[key] if requirements.key? key - segments.each do |segment| - return segment.regexp if segment.respond_to?(:key) && segment.key == key + protected + def requirement_for(key) + return requirements[key] if requirements.key? key + segments.each do |segment| + return segment.regexp if segment.respond_to?(:key) && segment.key == key + end + nil end - nil - end - end end end |