gigo-activerecord 1.4.0 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gigo/active_record/base.rb +8 -0
- data/lib/gigo/active_record/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: e8cbb133d8a1c04b545557d7fe6d2c68156037e3
|
4
|
+
data.tar.gz: fe0d72878145c9392a6d2236c42084ff3442ac74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5c6fec500bef06ab3d78ddbb927565522959e49d48ae6c053a646742f144c00234680ea44f1230bd60c631a402079ddcb89c861b84127d755d6a252f8c76680
|
7
|
+
data.tar.gz: eafe41358a1d56333a3fbe5259b4159aa3b51f53432cbce266b85865683def2fe77bcacc807343cb256c554846149a865ed0167c3027947c9c1980f3c5f08f0c
|
@@ -32,6 +32,14 @@ module GIGO
|
|
32
32
|
gigo_column(*cols)
|
33
33
|
end
|
34
34
|
|
35
|
+
def after_initialize_gigoize_attributes
|
36
|
+
after_initialize :gigoize_attributes
|
37
|
+
define_method :gigoize_attributes do
|
38
|
+
self.class.const_get(:GIGOColumns).instance_methods.each { |name| self.send(name) }
|
39
|
+
end
|
40
|
+
private :gigoize_attributes
|
41
|
+
end
|
42
|
+
|
35
43
|
end
|
36
44
|
|
37
45
|
module ThreeOhOnly
|