instance method
mime_type
Ruby on Rails 4.0.13
Since v2.2.3 Last seen in v4.0.13Signature
mime_type()
No documentation comment.
Source
# File actionpack/lib/action_view/template.rb, line 149
def mime_type
message = 'Template#mime_type is deprecated and will be removed in Rails 4.1. Please use type method instead.'
ActiveSupport::Deprecation.warn message
@mime_type ||= Mime::Type.lookup_by_extension(@formats.first.to_s) if @formats.first
end
Defined in actionpack/lib/action_view/template.rb line 149
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::Template