storext 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/storext/instance_methods.rb +3 -0
- data/lib/storext/version.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: 6e8a8c0e422de600c714360df2977eea1c317b21
|
4
|
+
data.tar.gz: 017ed53d2d1fb0cd445db1543c052b29e9e70eaa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eeb083dba050d12e715ddf45a1ab5b184dcefed11c9e183bd252c735e98e5e3366b507d1234132b9cfefd7ea0c24d7e2aaf2695ca5372fe8d438f66a3e87e6b4
|
7
|
+
data.tar.gz: 49cf8072a4fe6b312b8917daf9a882bf0513863840a680799ad2a4c3f81671f084bba48bff406be97b6e4808e4ab45039050cbd5d62610f12cbaea896bd13efb
|
@@ -12,6 +12,9 @@ module Storext
|
|
12
12
|
|
13
13
|
def destroy_keys(column, *attrs)
|
14
14
|
new_value = send(column)
|
15
|
+
if Rails.gem_version < Gem::Version.new("4.2.0")
|
16
|
+
new_value = send(column).dup
|
17
|
+
end
|
15
18
|
attrs.each { |a| new_value.delete(a.to_s) }
|
16
19
|
send("#{column}=", new_value)
|
17
20
|
end
|
data/lib/storext/version.rb
CHANGED