Class: Phcscriptcdnpro::ApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Phcscriptcdnpro::ApplicationController
- Defined in:
- app/controllers/phcscriptcdnpro/application_controller.rb
Direct Known Subclasses
Frontend::ListingsController, Script::AuthorsController, Script::ExtensionsController, Script::LicencesController, Script::ListingsController, Script::UrlsController, Script::VersionsController
Instance Method Summary collapse
-
#user_for_paper_trail ⇒ Object
Papertrail Whodunnit Username.
Instance Method Details
#user_for_paper_trail ⇒ Object
Papertrail Whodunnit Username
13 14 15 16 |
# File 'app/controllers/phcscriptcdnpro/application_controller.rb', line 13 def user_for_paper_trail # Default is: current_user rescue nil current_user ? current_user.username : 'Public user' end |