Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
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
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit beca1f2

Please sign in to comment.