Class: PaperTrailHistory::ApplicationController
- Inherits:
-
Object
- Object
- PaperTrailHistory::ApplicationController
- Includes:
- Pagy::Method
- Defined in:
- app/controllers/paper_trail_history/application_controller.rb
Overview
Base controller of the engine. It applies the access rules that the host application sets with PaperTrailHistory.configure.
Direct Known Subclasses
Class Method Summary collapse
-
.warn_about_unconfigured_access ⇒ Object
Writes the warning about unconfigured access one time for each process.
Class Method Details
.warn_about_unconfigured_access ⇒ Object
Writes the warning about unconfigured access one time for each process.
18 19 20 21 22 23 24 25 26 27 |
# File 'app/controllers/paper_trail_history/application_controller.rb', line 18 def warn_about_unconfigured_access return if @unconfigured_access_warned @unconfigured_access_warned = true Rails.logger.warn( '[paper_trail_history] The engine runs without access control. It shows the full audit trail ' \ 'and can overwrite records. Set config.authenticate_with or config.parent_controller in an ' \ 'initializer before you deploy. See the README for details.' ) end |