Class: Phcmemberspro::ApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Phcmemberspro::ApplicationController
- Defined in:
- app/controllers/phcmemberspro/application_controller.rb
Direct Known Subclasses
Directory::CategoriesController, Member::AddressesController, Member::DashboardsController, Member::ListingsController, Member::ProfilesController
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/phcmemberspro/application_controller.rb', line 15 def user_for_paper_trail current_user ? current_user.username : 'Public user' end |