active_house 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/active_house/collectable.rb +1 -1
- data/lib/active_house/connection.rb +4 -0
- data/lib/active_house/modeling.rb +6 -0
- data/lib/active_house/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: 82c05801fc7ad814630b97ef96b98266eb55878e
|
4
|
+
data.tar.gz: 884f6a16ba8a523068bceaf636e22c62ca73861f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eec19aa3942c2980ce9d776977d4f174a9e66712b8410b753705673296c320573b801bc7d1f192891e4e7b81e23a1b8d48428ca66c23f17475b9cba5ef798ba1
|
7
|
+
data.tar.gz: 5e88fa243733382fe2d0c28cc61311bb9428b89f2e0587b6e6755e482132ed3c308fce7b2fe9269a169d68ddd5e77c1bcfafbaee39ad214a8d4fbf48cffa2bf1
|
@@ -34,6 +34,12 @@ module ActiveHouse
|
|
34
34
|
def attribute(name, options = {})
|
35
35
|
name = name.to_sym
|
36
36
|
self._attribute_opts = _attribute_opts.merge(name => options)
|
37
|
+
define_method(name) do
|
38
|
+
get_attribute(name)
|
39
|
+
end
|
40
|
+
define_method("#{name}=") do |value|
|
41
|
+
set_attribute(name, value)
|
42
|
+
end
|
37
43
|
end
|
38
44
|
|
39
45
|
def attributes(*names)
|
data/lib/active_house/version.rb
CHANGED