Skip to content

Commit

Permalink
Template#mime_type should not use Mime::Type when Action Controller i…
Browse files Browse the repository at this point in the history
…s not included
  • Loading branch information
lifo committed Feb 2, 2009
1 parent ed5fa2f commit beca1f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/lib/action_view/template.rb
Expand Up @@ -133,7 +133,7 @@ def content_type
end

def mime_type
Mime::Type.lookup_by_extension(format) if format
Mime::Type.lookup_by_extension(format) if format && defined?(::Mime)
end
memoize :mime_type

Expand Down

0 comments on commit beca1f2

Please sign in to comment.