attr_encryption 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/attr_encryption.gemspec +1 -1
- data/lib/attr_encryption.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 258965db5320b47075771bde469ef7904a814c72439f03b8bc9b986d37beb1a8
|
4
|
+
data.tar.gz: b4bd421e811239df1b3d7495075531aaa5e4163883f3f1738b5bc763e1beb801
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6bc244e2af6c350ff72b1f795325bc1ae7f5daed1f5d0d2ec98240b800aea955cb66dfd9c1181c1dc2feb2d7a0314fd76ac0facfe48b1e55643665a5b131a701
|
7
|
+
data.tar.gz: d20af4210f1f9b3d33db7f2223efc8349db9edec11a7a199033e8a2e08bc11c7cf2cd61a037af0e38b33a4764223d661838210f9d269867dbd2c75b3fe305135
|
data/attr_encryption.gemspec
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "attr_encryption".freeze
|
9
|
-
s.version = "0.4.
|
9
|
+
s.version = "0.4.2"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib".freeze]
|
data/lib/attr_encryption.rb
CHANGED
@@ -170,7 +170,7 @@ module AttrEncryption
|
|
170
170
|
value = send(attribute)
|
171
171
|
value.respond_to?(:empty?) ? !value.empty? : !!value
|
172
172
|
end
|
173
|
-
|
173
|
+
self.encrypted_attributes ||= {}
|
174
174
|
encrypted_attributes[attribute.to_sym] = options.merge(:attribute => encrypted_attribute_name)
|
175
175
|
end
|
176
176
|
end
|