Class: Miniblog::ApplicationController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Miniblog::ApplicationController
- Defined in:
- app/controllers/miniblog/application_controller.rb
Direct Known Subclasses
Miniblog::Admin::BaseController, PostsController, SitemapController
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/miniblog/application_controller.rb', line 3 def method_missing(method_name) if method_name == :current_user Rails.logger.warn("current_user in Miniblog::ApplicationController should be overriden") ::User.new elsif method_name == :authenticate_user! Rails.logger.warn("authenticate_user! in Miniblog::ApplicationController should be overriden") end end |