We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f700026 commit c3d68bdCopy full SHA for c3d68bd
lib/attr_encrypted/adapters/active_record.rb
@@ -43,6 +43,12 @@ def assign_attributes(*args)
43
def attributes=(*args)
44
perform_attribute_assignment :attributes_without_attr_encrypted=, *args
45
end
46
+
47
+ alias_method :attributes_without_attr_encrypted, :attributes
48
+ def attributes
49
+ encrypted_keys = self.class.encrypted_attributes.keys
50
+ attributes_without_attr_encrypted.reject { |k, _| encrypted_keys.include?(k.to_sym) }
51
+ end
52
53
54
0 commit comments