rails_metadata 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rails_metadata/version.rb +1 -1
- data/lib/rails_metadata.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e555667459c1dde77908f43079766db37677055
|
4
|
+
data.tar.gz: 8334c4e78f5cf5c8ccc906fc2abe9a940628e29a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a5d2870c2e62d923402447d9c07fcf5156d899e6662349bc1b5eba50684ae629f81f6db51929bb79075eef5547b5ffbe54cccac66174642aa4ffb3d2805817e
|
7
|
+
data.tar.gz: 36deeafffb8ef1b0aae95fbd7122cef28d1df79facc40819da5b8d4284a1c234b60ec57c9092199a415400cce678660108c4adfc5622bedb8bb347b02fd48c32
|
data/lib/rails_metadata.rb
CHANGED
@@ -36,7 +36,7 @@ module RailsMetadata
|
|
36
36
|
end
|
37
37
|
define_method(name.to_s + '=') do |val|
|
38
38
|
self.metadata = {} unless self.metadata.present?
|
39
|
-
if val.present?
|
39
|
+
if val.present? || val == false
|
40
40
|
self.metadata.merge!(name => typecast.call(val))
|
41
41
|
else
|
42
42
|
self.metadata.delete(name)
|