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 +4 -4
- data/lib/storext/class_methods.rb +4 -1
- 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: e1d2b7891fc2026bb0689cd6986f65c4a10f4eba
|
4
|
+
data.tar.gz: e498daeb28e562bbcbecb3c24e7589268f66aca2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
|
data/lib/storext/version.rb
CHANGED