Skip to content

Commit

Permalink
Adds prefix to decrypt - Missed one
Browse files Browse the repository at this point in the history
  • Loading branch information
armiiller committed Apr 12, 2021
1 parent 515cf71 commit eafd77a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/attr_encrypted.rb
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def attr_encrypted(*attributes)
end

define_method(attribute) do
instance_variable_get("@#{attribute}") || instance_variable_set("@#{attribute}", decrypt(attribute, send(encrypted_attribute_name)))
instance_variable_get("@#{attribute}") || instance_variable_set("@#{attribute}", attr_encrypted_decrypt(attribute, send(encrypted_attribute_name)))
end

define_method("#{attribute}=") do |value|
Expand Down

0 comments on commit eafd77a

Please sign in to comment.