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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a6ce323342ef66d7c2dc65ba73b25b5365717138
4
- data.tar.gz: f4a3efec960a9e8619aa135360167992faadfb13
3
+ metadata.gz: 6e8a8c0e422de600c714360df2977eea1c317b21
4
+ data.tar.gz: 017ed53d2d1fb0cd445db1543c052b29e9e70eaa
5
5
  SHA512:
6
- metadata.gz: 70cd9d171ad95723db0a8569d727e6133b9f29824707ce280111d5b25f2f284754c9f38b6623b24871a60424927b1ad3bb467dc612b80516a0265229d9672bfb
7
- data.tar.gz: 3b7b48cf1eaeff6931d7ad675139dbbd72c9c57d69223b9aafb3897bca71646bed9cd23b4d8e64a481a56eddd3bc4586c2952be7e9465ee5bd07251a8fd97a4b
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
@@ -1,3 +1,3 @@
1
1
  module Storext
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: storext
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - G5