Skip to content

Commit

Permalink
Expose the cookie jar as a helper method (before the view would just …
Browse files Browse the repository at this point in the history
…get the raw cookie hash) [DHH]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8062 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
dhh committed Oct 31, 2007
1 parent 8f74527 commit da532b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions actionpack/CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
*SVN*

* Expose the cookie jar as a helper method (before the view would just get the raw cookie hash) [DHH]

* Integration tests: get_ and post_via_redirect take a headers hash. #9130 [simonjefford]

* Simplfy #view_paths implementation. ActionView templates get the exact object, not a dup. [Rick]
Expand Down
4 changes: 4 additions & 0 deletions actionpack/lib/action_controller/cookies.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ module ActionController #:nodoc:
# * <tt>http_only</tt> - 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
Expand Down

0 comments on commit da532b9

Please sign in to comment.