Module: Hanami::Action::Mime::ClassMethods
- Defined in:
- lib/hanami/action/mime.rb
Overview
Instance Method Summary collapse
Instance Method Details
#format_to_mime_type(format) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
63 64 65 66 67 |
# File 'lib/hanami/action/mime.rb', line 63 def format_to_mime_type(format) configuration.mime_type_for(format) || ::Rack::Mime.mime_type(".#{ format }", nil) or raise Hanami::Controller::UnknownFormatError.new(format) end |