module RedisModelExtension::Dirty::ClassMethods
Public Instance Methods
new_by_key(key)
click to toggle source
hook to reset changed attributes, when load by .find or .get
Calls superclass method
# File lib/redis-model-extension/dirty.rb, line 34 def new_by_key(key) new_instance = super new_instance.changed_attributes.clear new_instance end