storext 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/storext/instance_methods.rb +4 -0
- data/lib/storext/version.rb +1 -1
- data/lib/storext.rb +0 -6
- 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: 4305f2288cae4be148bd2894bec0179e6f133d1d
|
4
|
+
data.tar.gz: b3bb3521ad5ed2d442dadf58e6c82bd8948a5c49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b92816e609332686a166e1f0477eb2d341edfb9c08a624661abc9eb4ddbe01fb184ced48911d10246b574446b04ff129168d5d6282baff9c6ea177c5adea878
|
7
|
+
data.tar.gz: a50ae3d082e6ada9f2a610b647899d9f53babbf4ad233c180b3fb620cc9e7c22845f4f1d90d7a8ba276aebc9e6231b7f80d71229b9abc59b673bb6d0867ecbcf
|
@@ -4,6 +4,10 @@ module Storext
|
|
4
4
|
private
|
5
5
|
|
6
6
|
def set_storext_defaults
|
7
|
+
self.class.storext_options.each do |column, default|
|
8
|
+
self.send("#{column}=", default) if self.send(column).nil?
|
9
|
+
end
|
10
|
+
|
7
11
|
store_attribute_defs.each do |attr, definition|
|
8
12
|
set_storext_default_for(definition[:column], attr)
|
9
13
|
end
|
data/lib/storext/version.rb
CHANGED
data/lib/storext.rb
CHANGED