module Samsara::RevisionConcern

Public Instance Methods

attribute_changes() click to toggle source
# File lib/samsara/revision_concern.rb, line 24
def attribute_changes
  original_attributes.each_with_object({}) do |(attribute, value), changes|
    changes[attribute] = [value, modified_attributes[attribute]]
  end
end