mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Template#mime_type should not use Mime::Type when Action Controller is not included
This commit is contained in:
@@ -133,7 +133,7 @@ module ActionView #:nodoc:
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user