module ActiveRedis::DirtyAttributes
Public Instance Methods
check_for_changes()
click to toggle source
# File lib/active_redis/dirty_attributes.rb, line 3 def check_for_changes @changed_attributes ||= {} self.class.attribute_definitions.each do |attribute, options| next unless @attributes.key?(attribute.to_sym) value = send(attribute) if value.class.name.start_with?("ActiveRedis::DirtyObjects") if value.dirty? @changed_attributes[attribute.to_s] = [value.original, value.changes] end end end end