medea 0.2.28 → 0.2.29
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/medea/jasonlistproperty.rb +2 -2
- data/lib/medea/version.rb +1 -1
- metadata +3 -3
@@ -18,9 +18,9 @@ module Medea
|
|
18
18
|
|
19
19
|
def method_missing name, *args, &block
|
20
20
|
#is this a list property on the base class?
|
21
|
-
if (@type.class_variable_defined? :@@lists) && (@type.class_variable_get
|
21
|
+
if (@type.class_variable_defined? :@@lists) && (@type.send(:class_variable_get, :@@lists).has_key? name)
|
22
22
|
#if so, we'll just return a new ListProperty with my query as the parent
|
23
|
-
new_list_class, new_list_type = @type.class_variable_get
|
23
|
+
new_list_class, new_list_type = @type.send(:class_variable_get, :@@lists)[name]
|
24
24
|
base_query = self.clone
|
25
25
|
base_query.result_format = :keylist
|
26
26
|
JasonListProperty.new base_query, name.to_sym, new_list_class, new_list_type
|
data/lib/medea/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: medea
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 45
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 29
|
10
|
+
version: 0.2.29
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Michael Jensen
|