config | -> | configure |
Returns any information from the controller that you want PaperTrail to store.
See `PaperTrail::Rails::Controller#info_for_paper_trail`.
Sets any information from the controller that you want PaperTrail to store. By default this is set automatically by a before filter.
Sets whether PaperTrail is enabled or disabled for the current request.
Returns `true` if PaperTrail is enabled for the request, `false` otherwise.
See `PaperTrail::Rails::Controller#paper_trail_enabled_for_controller`.
Sets whether PaperTrail is enabled or disabled for this model in the current request.
Returns `true` if PaperTrail is enabled for this model in the current request, `false` otherwise.
Sets who is responsible for any changes that occur. You would normally use this in a migration or on the console, when working with models directly. In a controller it is set automatically to the `current_user`.
Backport Rails 4.2 and later‘s `type_for_attribute` to build on a common interface.