class ActiveRecord::Base

rubocop:disable Style/BracesAroundHashParameters, Style/ClassAndModuleChildren

Public Instance Methods

attributes_for_super_diff() click to toggle source
# File lib/super_diff/active_record/monkey_patches.rb, line 3
def attributes_for_super_diff
  (attributes.keys.sort - ["id"]).reduce({ id: id }) do |hash, key|
    hash.merge(key.to_sym => attributes[key])
  end
end