Sha256: 29e823e6a0c8529b35891e8c4bc4186139d1f1c4fa0e5f8b726b2e6747e98295
Contents?: true
Size: 1.04 KB
Versions: 6
Compression:
Stored size: 1.04 KB
Contents
require 'hanami/action' require 'hanami/controller/version' require 'hanami/controller/error' # Hanami # # @since 0.1.0 module Hanami # A set of logically grouped actions # # @since 0.1.0 # # @see Hanami::Action # # @example # require 'hanami/controller' # # module Articles # class Index # include Hanami::Action # # # ... # end # # class Show # include Hanami::Action # # # ... # end # end module Controller # Unknown format error # # This error is raised when a action sets a format that it isn't recognized # both by `Hanami::Controller::Configuration` and the list of Rack mime types # # @since 0.2.0 # # @see Hanami::Action::Mime#format= class UnknownFormatError < Hanami::Controller::Error # @since 0.2.0 # @api private def initialize(format) super("Cannot find a corresponding Mime type for '#{ format }'. Please configure it with Hanami::Controller::Configuration#format.") end end end end
Version data entries
6 entries across 6 versions & 1 rubygems