diff options
author | Rick Olson <technoweenie@gmail.com> | 2007-02-15 16:25:46 +0000 |
---|---|---|
committer | Rick Olson <technoweenie@gmail.com> | 2007-02-15 16:25:46 +0000 |
commit | 5d54b8f07cef29e932e164e23713a71274c78e49 (patch) | |
tree | 75b6df90d0364b86b47e1a2a25196c73bd34d7b2 /actionpack/lib/action_controller/session_management.rb | |
parent | 5b7630e17423f6c906fb4438766463b25c6fc133 (diff) | |
download | rails-5d54b8f07cef29e932e164e23713a71274c78e49.tar.gz rails-5d54b8f07cef29e932e164e23713a71274c78e49.tar.bz2 rails-5d54b8f07cef29e932e164e23713a71274c78e49.zip |
Add Mime::Type convenience methods to check the current mime type. [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6152 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller/session_management.rb')
-rw-r--r-- | actionpack/lib/action_controller/session_management.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/session_management.rb b/actionpack/lib/action_controller/session_management.rb index 60b0cd5f94..24f1651b00 100644 --- a/actionpack/lib/action_controller/session_management.rb +++ b/actionpack/lib/action_controller/session_management.rb @@ -61,6 +61,10 @@ module ActionController #:nodoc: # session :off, :only => :foo, # :if => Proc.new { |req| req.parameters[:ws] } # + # # the session will be disabled for non html/ajax requests + # session :off, + # :if => Proc.new { |req| !(req.format.html? || req.format.js?) } + # # All session options described for ActionController::Base.process_cgi # are valid arguments. def session(*args) |