Sha256: 8d8279e980cd126d5cb2c49e20100fd7a8e83fd7d0b366163458bda4f5180c53

Contents?: true

Size: 466 Bytes

Versions: 7

Compression:

Stored size: 466 Bytes

Contents

module Hanami
  class Action
    # Cookies API
    #
    # This module isn't included by default.
    #
    # @since 0.1.0
    #
    # @see Hanami::Action::Cookies#cookies
    module Cookies
      private

      # Finalize the response by flushing cookies into the response
      #
      # @since 0.1.0
      # @api private
      #
      # @see Hanami::Action#finish
      def finish(req, res, *)
        res.cookies.finish
        super
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
hanami-controller-2.0.0.alpha8 lib/hanami/action/cookies.rb
hanami-controller-2.0.0.alpha6 lib/hanami/action/cookies.rb
hanami-controller-2.0.0.alpha5 lib/hanami/action/cookies.rb
hanami-controller-2.0.0.alpha4 lib/hanami/action/cookies.rb
hanami-controller-2.0.0.alpha3 lib/hanami/action/cookies.rb
hanami-controller-2.0.0.alpha2 lib/hanami/action/cookies.rb
hanami-controller-2.0.0.alpha1 lib/hanami/action/cookies.rb