Sha256: 35cd3bf9bd786293ab559425883b1a4b5fe2f94cd2abdfb9a4ff6eb7cf353a52
Contents?: true
Size: 1.06 KB
Versions: 2
Compression:
Stored size: 1.06 KB
Contents
# frozen_string_literal: true 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 < Hanami::Action # # ... # end # # class Show < 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::Action::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.") # rubocop:disable Layout/LineLength end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hanami-controller-2.0.0.beta4 | lib/hanami/controller.rb |
hanami-controller-2.0.0.beta1 | lib/hanami/controller.rb |