From da532b92fd5ce24ee16b6d091708bf982aab07a5 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 31 Oct 2007 16:46:56 +0000 Subject: Expose the cookie jar as a helper method (before the view would just get the raw cookie hash) [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8062 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/cookies.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'actionpack/lib') diff --git a/actionpack/lib/action_controller/cookies.rb b/actionpack/lib/action_controller/cookies.rb index c40ef341a1..f36f9031d2 100644 --- a/actionpack/lib/action_controller/cookies.rb +++ b/actionpack/lib/action_controller/cookies.rb @@ -27,6 +27,10 @@ module ActionController #:nodoc: # * http_only - whether this cookie is accessible via scripting or only HTTP (defaults to false). module Cookies + def self.included(base) + base.helper_method :cookies + end + protected # Returns the cookie container, which operates as described above. def cookies -- cgit v1.2.3