Skip to content
This repository
Browse code

Deprecate ActionController::Base#session_enabled?

  • Loading branch information...
commit 9cefd5ea0c21595d73762b5d60a760a3ed9fe8bf 1 parent 68fdfde
Pratik authored January 19, 2009
2  actionpack/lib/action_controller/base.rb
@@ -644,7 +644,7 @@ def controller_path
644 644
       end
645 645
 
646 646
       def session_enabled?
647  
-        request.session_options && request.session_options[:disabled] != false
  647
+        ActiveSupport::Deprecation.warn("Sessions are now lazy loaded. So if you don't access them, consider them disabled.", caller)
648 648
       end
649 649
 
650 650
       self.view_paths = []

0 notes on commit 9cefd5e

Please sign in to comment.
Something went wrong with that request. Please try again.