aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/metal/cookies.rb
blob: 7aa687b52c4c356e7e021219b21cacdf5b82180e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module ActionController #:nodoc:
  module Cookies
    extend ActiveSupport::Concern

    include RackDelegation

    included do
      helper_method :cookies
      cattr_accessor :cookie_verifier_secret
    end
    
    private
      def cookies
        request.cookie_jar
      end
  end
end