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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ff85262313c320748bcfb9659bf58623dd310c7b
4
- data.tar.gz: 26007fccf2bf09a68ab9abd09549ca9c69fadbdc
3
+ metadata.gz: e8cbb133d8a1c04b545557d7fe6d2c68156037e3
4
+ data.tar.gz: fe0d72878145c9392a6d2236c42084ff3442ac74
5
5
  SHA512:
6
- metadata.gz: a46443fcd550f3f0a8f3a96fadb359e934f6f8489592b6490d3835ebf619e601b7528e0b0ad6faa3bc3548e53b93d87d573809815f37bcb5be1e217394aa01c1
7
- data.tar.gz: 87971ea8d0b69840743e735609357ee8b478ab2a399eb19d1c6c279555849091d073d88d67d418db3f1b71625f1950f315decda67a7469a9c1dbafd26a645498
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
@@ -1,5 +1,5 @@
1
1
  module GIGO
2
2
  module ActiveRecord
3
- VERSION = "1.4.0"
3
+ VERSION = "1.5.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gigo-activerecord
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ken Collins