storext 0.0.2 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/storext/class_methods.rb +3 -0
- data/lib/storext/version.rb +1 -1
- data/lib/storext.rb +7 -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: f75672c4e98e57d8b37ab4bda5442b7defce708f
|
|
4
|
+
data.tar.gz: 646b070e850bb86161ff70f574fffc5f92ec9113
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8be8170eab75249c49086e6c02ae34b358f55b879f34bd02d5f2c4f09faa8821fe1fcb5b2aa68d2c4a163a5161a7749d41b0e593645c609a011d582d344500b8
|
|
7
|
+
data.tar.gz: 14c0fea128a4e321f42e02a1067e0392f5b6858e21b410d392bec5ccfba67bf0fd00c1db4e9194df799cdc1b004a9fcb2cdbe785b44556fae2371346ee2d32fe
|
|
@@ -23,6 +23,9 @@ module Storext
|
|
|
23
23
|
track_store_attribute(column, attr)
|
|
24
24
|
|
|
25
25
|
storext_cast_proxy_class.attribute "_casted_#{attr}", type, opts
|
|
26
|
+
unless storext_cast_proxy_class.instance_methods.include? :"_casted_#{attr}"
|
|
27
|
+
raise ArgumentError, "problem defining `#{attr}`. `#{type}` may not be a valid type."
|
|
28
|
+
end
|
|
26
29
|
|
|
27
30
|
storext_define_writer(column, attr)
|
|
28
31
|
storext_define_reader(column, attr)
|
data/lib/storext/version.rb
CHANGED
data/lib/storext.rb
CHANGED
|
@@ -10,12 +10,18 @@ module Storext
|
|
|
10
10
|
included do
|
|
11
11
|
class_attribute :store_attribute_defs
|
|
12
12
|
self.store_attribute_defs = {}
|
|
13
|
+
|
|
14
|
+
unless defined?(self::Boolean)
|
|
15
|
+
self::Boolean = ::Axiom::Types::Boolean
|
|
16
|
+
end
|
|
13
17
|
end
|
|
14
18
|
|
|
15
19
|
private
|
|
16
20
|
|
|
17
21
|
def storext_cast_proxy
|
|
18
|
-
|
|
22
|
+
if @storext_cast_proxy
|
|
23
|
+
return @storext_cast_proxy
|
|
24
|
+
end
|
|
19
25
|
@storext_cast_proxy ||= self.class.storext_cast_proxy_class.new
|
|
20
26
|
end
|
|
21
27
|
|