lib/huberry/attr_encrypted/class.rb in shuber-attr_encrypted-1.0.4 vs lib/huberry/attr_encrypted/class.rb in shuber-attr_encrypted-1.0.5
- old
+ new
@@ -128,10 +128,10 @@
end
end
define_method "#{attribute}" do
value = instance_variable_get("@#{attribute}")
- encrypted_value = send(encrypted_attribute_name.to_s)
+ encrypted_value = send(encrypted_attribute_name.to_sym)
original_options = [:key, :if, :unless].inject({}) do |hash, option|
hash[option] = options[option]
options[option] = self.class.send :evaluate_attr_encrypted_option, options[option], self
hash
end
\ No newline at end of file