Class: Crowdblog::ApplicationController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Crowdblog::ApplicationController
- Defined in:
- app/controllers/crowdblog/application_controller.rb
Direct Known Subclasses
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_name) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'app/controllers/crowdblog/application_controller.rb', line 3 def method_missing(method_name) if method_name == :current_user Rails.logger.warn("current_user in Crowdblog::ApplicationController should be overriden") ::User.new elsif method_name == :authenticate_user! Rails.logger.warn("authenticate_user! in Crowdblog::ApplicationController should be overriden") end end |