Class: Phcpresspro::ApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Phcpresspro::ApplicationController
- Defined in:
- app/controllers/phcpresspro/application_controller.rb
Direct Known Subclasses
Phcpresspro::Article::CategoriesController, Phcpresspro::Article::PostsController
Instance Method Summary collapse
-
#user_for_paper_trail ⇒ Object
Papertrail Whodunnit Username.
Instance Method Details
#user_for_paper_trail ⇒ Object
Papertrail Whodunnit Username
15 16 17 |
# File 'app/controllers/phcpresspro/application_controller.rb', line 15 def user_for_paper_trail current_user ? current_user.username : 'Public user' end |