Method: Hanami::Config#actions

Defined in:
lib/hanami/config.rb

#actionsHanami::Config::Actions, Hanami::Config::NullConfig (readonly)

Returns the app’s actions config, or a null config if hanami-controller is not bundled.

Examples:

When hanami-controller is bundled

config.actions.default_request_format # => :html

When hanami-controller is not bundled

config.actions.default_request_format # => NoMethodError

Returns:

Since:

  • 2.0.0


222
223
224
# File 'lib/hanami/config.rb', line 222

def actions
  @actions
end