module Mobility::Plugins::ActiveRecord::Dirty

Dirty tracking for AR models. See {Mobility::Plugins::ActiveModel::Dirty} for details on usage.

In addition to methods added by {Mobility::Plugins::ActiveModel::Dirty}, the AR::Dirty plugin adds support for the following persistence-specific methods (for a model with a translated attribute title):

The following methods are also patched to include translated attribute changes:

In addition, the following ActiveModel attribute handler methods are also patched to work with translated attributes:

(When using these methods, you must pass the attribute name along with its locale suffix, so title_en, title_pt_br, etc.)

Constants

BackendMethods
HandlerMethods

Module which defines generic ActiveRecord::Dirty handler methods like attribute_before_last_save that are patched to work with translated attributes.

Private Instance Methods

dirty_handler_methods() click to toggle source
# File lib/mobility/plugins/active_record/dirty.rb, line 62
def dirty_handler_methods
  HandlerMethods
end