Browse files

Deprecate ActionController::Base#session_enabled?

  • Loading branch information...
1 parent 68fdfde commit 9cefd5ea0c21595d73762b5d60a760a3ed9fe8bf @lifo lifo committed Jan 19, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_controller/base.rb
View
2 actionpack/lib/action_controller/base.rb
@@ -644,7 +644,7 @@ def controller_path
end
def session_enabled?
- request.session_options && request.session_options[:disabled] != false
+ ActiveSupport::Deprecation.warn("Sessions are now lazy loaded. So if you don't access them, consider them disabled.", caller)
end
self.view_paths = []

0 comments on commit 9cefd5e

Please sign in to comment.