Module PaperTrail
In: lib/generators/paper_trail/install_generator.rb
lib/paper_trail.rb
lib/paper_trail/version_concern.rb
lib/paper_trail/frameworks/rails.rb
lib/paper_trail/frameworks/rails/engine.rb
lib/paper_trail/frameworks/rails/controller.rb
lib/paper_trail/frameworks/rspec/helpers.rb
lib/paper_trail/frameworks/active_record/models/paper_trail/version.rb
lib/paper_trail/frameworks/active_record/models/paper_trail/version_association.rb
lib/paper_trail/frameworks/cucumber.rb
lib/paper_trail/frameworks/sinatra.rb
lib/paper_trail/config.rb
lib/paper_trail/version_association_concern.rb
lib/paper_trail/version_number.rb
lib/paper_trail/has_paper_trail.rb
lib/paper_trail/reifier.rb
lib/paper_trail/serializers/json.rb
lib/paper_trail/serializers/yaml.rb
lib/paper_trail/record_history.rb
lib/paper_trail/cleaner.rb
lib/paper_trail/attributes_serialization.rb

Methods

Included Modules

PaperTrail::Rails::Controller

Classes and Modules

Module PaperTrail::AttributesSerialization
Module PaperTrail::Cleaner
Module PaperTrail::Cucumber
Module PaperTrail::Model
Module PaperTrail::RSpec
Module PaperTrail::Rails
Module PaperTrail::Reifier
Module PaperTrail::Serializers
Module PaperTrail::Sinatra
Module PaperTrail::VERSION
Module PaperTrail::VersionAssociationConcern
Module PaperTrail::VersionConcern
Class PaperTrail::Config
Class PaperTrail::InstallGenerator
Class PaperTrail::RecordHistory
Class PaperTrail::Version
Class PaperTrail::VersionAssociation

External Aliases

config -> configure

Public Class methods

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.

Switches PaperTrail on or off.

Returns `true` if PaperTrail is on, `false` otherwise. PaperTrail is enabled by default.

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.

Getter and Setter for PaperTrail Serializer

Returns the field which records when a version was created.

Set the field which records when a version was created.

Returns who is reponsible for any changes that occur.

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`.

Public Instance methods

Used for Version#object_changes attribute.

Used for `Version#object` attribute.

Backport Rails 4.2 and later‘s `type_for_attribute` to build on a common interface.

[Validate]