diff options
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/routing.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/routing.rb b/actionpack/lib/action_controller/routing.rb index 41f61bdb0d..32ce0db3aa 100644 --- a/actionpack/lib/action_controller/routing.rb +++ b/actionpack/lib/action_controller/routing.rb @@ -99,7 +99,7 @@ module ActionController def default_check(g) presence = "#{g.hash_value(key, !! default)}" if default - "!(#{presence} && #{g.hash_value(key, false)} != #{default.inspect})" + "!(#{presence} && #{g.hash_value(key, false)} != #{default.to_s.inspect})" else "! #{presence}" end |