diff options
author | Andrew White <andyw@pixeltrix.co.uk> | 2013-04-10 08:18:06 +0100 |
---|---|---|
committer | Andrew White <andyw@pixeltrix.co.uk> | 2013-04-10 08:18:06 +0100 |
commit | 24b1d4fc63dc40c6996031a795998a332128c0de (patch) | |
tree | 96608565789c28131388136f7a38b4fbf8c109f8 /actionpack/lib/action_dispatch | |
parent | d50df2f116bfb1f3e897746fb345a5e945650e31 (diff) | |
download | rails-24b1d4fc63dc40c6996031a795998a332128c0de.tar.gz rails-24b1d4fc63dc40c6996031a795998a332128c0de.tar.bz2 rails-24b1d4fc63dc40c6996031a795998a332128c0de.zip |
Return nil for Mime::NullType#ref
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r-- | actionpack/lib/action_dispatch/http/mime_type.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/http/mime_type.rb b/actionpack/lib/action_dispatch/http/mime_type.rb index c24c9a1bc3..f29ad359ac 100644 --- a/actionpack/lib/action_dispatch/http/mime_type.rb +++ b/actionpack/lib/action_dispatch/http/mime_type.rb @@ -312,6 +312,10 @@ module Mime true end + def ref + nil + end + def respond_to_missing?(method, include_private = false) method.to_s.ends_with? '?' end |