lib/lockbox/model.rb in lockbox-1.3.1 vs lib/lockbox/model.rb in lockbox-1.3.2

- old
+ new

@@ -507,9 +507,12 @@ if !@attributes.frozen? @attributes.write_cast_value(name.to_s, message) clear_attribute_change(name) end end + + # ensure same object is returned as next call + message = super() else instance_variable_set("@#{name}", message) end end