lib/lockbox/model.rb in lockbox-0.4.3 vs lib/lockbox/model.rb in lockbox-0.4.4

- old
+ new

@@ -268,10 +268,10 @@ @attributes[name.to_s].instance_variable_set("@value_before_type_cast", message) # cache # decrypt method does type casting if respond_to?(:write_attribute_without_type_cast, true) - write_attribute_without_type_cast(name, message) if !@attributes.frozen? + write_attribute_without_type_cast(name.to_s, message) if !@attributes.frozen? else raw_write_attribute(name, message) if !@attributes.frozen? end else instance_variable_set("@#{name}", message)