diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2010-11-22 18:47:47 -0200 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2010-11-22 18:47:47 -0200 |
commit | 6e559168dc68a32bdbdf87e26ebfcb464be7e886 (patch) | |
tree | 7cc0ff75c723e8c92b5348fcc972dd5edd44adfb /actionpack/lib | |
parent | 559c4292bcd132e87b50aa8f0807f2684cf234b8 (diff) | |
download | rails-6e559168dc68a32bdbdf87e26ebfcb464be7e886.tar.gz rails-6e559168dc68a32bdbdf87e26ebfcb464be7e886.tar.bz2 rails-6e559168dc68a32bdbdf87e26ebfcb464be7e886.zip |
There's no need for ternary op here
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/metal/mime_responds.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/metal/mime_responds.rb b/actionpack/lib/action_controller/metal/mime_responds.rb index f7dd0dcb69..6fe1f4ece5 100644 --- a/actionpack/lib/action_controller/metal/mime_responds.rb +++ b/actionpack/lib/action_controller/metal/mime_responds.rb @@ -291,7 +291,7 @@ module ActionController #:nodoc: alias :all :any def custom(mime_type, &block) - mime_type = mime_type.is_a?(Mime::Type) ? mime_type : Mime::Type.lookup(mime_type.to_s) + mime_type = Mime::Type.lookup(mime_type.to_s) unless mime_type.is_a?(Mime::Type) @order << mime_type @responses[mime_type] ||= block end |