storext 2.2.1 → 2.2.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: fe05e5dbcedd664b013a9d982449c3ea4b03336c
4
- data.tar.gz: 1d4eea9cc689fdbd52d3b2f7ca4b02decae8ade7
3
+ metadata.gz: d7310847392f00a725727524f18b60aa786ae711
4
+ data.tar.gz: 4f97657ecfce3c723c778d4828ccd0c9caa06263
5
5
  SHA512:
6
- metadata.gz: e47732a78a99a3e6d035c3bc3a1dfe11c29d955d5b6ec9fd7b1cd9b1c60f721e69e624276f435cefdf20168f3fcbb12ec8c3cf1187b1a498b7b57e7e045cbfaa
7
- data.tar.gz: 4dbe2ec9b4cfdcca97eaa5e73bb77466bf5059e35f722769aa0df60aca5d2f378da71a0c60a0c988fa430186b51352001e5e2fcf28f2edb05e18d54ba8faeff2
6
+ metadata.gz: 599218af628381c3a34b06fb973c7446edad2ac643f5ac42835c7dd50b49578077002314f554377c02c9ef3488f58f5f6b263bd279835d0d5d42cc6181b56714
7
+ data.tar.gz: 5d1ccd6f7668b46d939cd5243ab4e52af15e1042face666ec356fa311f18d7c9875340ac7f21d1ca7541b2feca53b0193332bd0b80c773546c8ed565f5578571
@@ -7,6 +7,8 @@ module Storext
7
7
  new_value = send(column).dup
8
8
  end
9
9
  new_value.delete(attr.to_s)
10
+ storext_cast_proxy.reset_attribute(attr)
11
+
10
12
  send("#{column}=", new_value)
11
13
  end
12
14
 
@@ -15,7 +17,12 @@ module Storext
15
17
  if Rails.gem_version < Gem::Version.new("4.2.0")
16
18
  new_value = send(column).dup
17
19
  end
18
- attrs.each { |a| new_value.delete(a.to_s) }
20
+
21
+ attrs.each do |a|
22
+ new_value.delete(a.to_s)
23
+ storext_cast_proxy.reset_attribute(a)
24
+ end
25
+
19
26
  send("#{column}=", new_value)
20
27
  end
21
28
 
@@ -1,3 +1,3 @@
1
1
  module Storext
2
- VERSION = "2.2.1"
2
+ VERSION = "2.2.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: 2.2.1
4
+ version: 2.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - G5
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-08-30 00:00:00.000000000 Z
13
+ date: 2016-12-16 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -130,4 +130,3 @@ signing_key:
130
130
  specification_version: 4
131
131
  summary: Extends ActiveRecord::Store.store_accessor
132
132
  test_files: []
133
- has_rdoc: