Sha256: 43944cc263d21da7faf3c12d3c5667e4eaa8da64a8cd1d5e8571988e940d5f63
Contents?: true
Size: 704 Bytes
Versions: 1
Compression:
Stored size: 704 Bytes
Contents
# frozen_string_literal: true module Hanami class Configuration class Actions # Wrapper for application-level configuration of HTTP cookies for Hanami actions. # This decorates the hash of cookie options that is otherwise directly configurable # on actions, and adds the `enabled?` method to allow `ApplicationAction` to # determine whether to include the `Action::Cookies` module. # # @since 2.0.0 class Cookies attr_reader :options def initialize(options) @options = options end def enabled? !options.nil? end def to_h options.to_h end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hanami-2.0.0.alpha8 | lib/hanami/configuration/actions/cookies.rb |