medea 0.2.24 → 0.2.25
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/medea/jasondeferredquery.rb +8 -0
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.25
|
@@ -102,6 +102,14 @@ module Medea
|
|
102
102
|
execute_query unless self.state == :postfetch
|
103
103
|
self.contents.count
|
104
104
|
end
|
105
|
+
|
106
|
+
def include?(item)
|
107
|
+
execute_query unless self.state == :postfetch
|
108
|
+
self.contents.each do |i|
|
109
|
+
return true if i.jason_key == item.jason_key
|
110
|
+
end
|
111
|
+
false
|
112
|
+
end
|
105
113
|
#end array interface
|
106
114
|
|
107
115
|
def execute_query
|