storext 0.1.2 → 0.1.3

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: da19a844f2f9b47d077d09620e86a73e56e3c75b
4
- data.tar.gz: e06e793d9c3513b4f26d96b6e5e154538f939f69
3
+ metadata.gz: e1d2b7891fc2026bb0689cd6986f65c4a10f4eba
4
+ data.tar.gz: e498daeb28e562bbcbecb3c24e7589268f66aca2
5
5
  SHA512:
6
- metadata.gz: 1ea0b73b22c001945c37f587a7842f7348d32626b1a93d408e33da9035744d0271d95e524ebadca7a3d58755ceeffa3b41e850b128d02baaf451d66a42ecae8f
7
- data.tar.gz: e5364b465ff2bbc710c109bb7b377bd8856398494c96b334acd9f6815d05fc5070600cd084f08843c3ba7ef682dab507d7bafe6d5c12691dbf622522e45daf1c
6
+ metadata.gz: 68807df855f69de632f74b962b2a246a7cc0c65fcd73456819a446acca19e583c50d6abacc988d35643681f839373ecfea7650978e95c52c48d84cd9ef1c921b
7
+ data.tar.gz: 7d86b66e517338408c6317aa9ae384521d88d079df715b246dcc8c2fcee5bbdd7318c0a82633168677b9a5867050706b2fcb736c385a6ea7dfce2ebcd37467d0
@@ -5,7 +5,10 @@ module Storext
5
5
  define_method "#{attr}=" do |value|
6
6
  storext_cast_proxy.send("_casted_#{attr}=", value)
7
7
  send("#{column}=", send(column) || {})
8
- send(column)[attr.to_s] = storext_cast_proxy.send("_casted_#{attr}")
8
+
9
+ attr_value = storext_cast_proxy.send("_casted_#{attr}")
10
+ write_store_attribute column, attr, value
11
+ send(column)[attr.to_s] = value
9
12
  end
10
13
  end
11
14
 
@@ -1,3 +1,3 @@
1
1
  module Storext
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
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: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - G5