medea 0.2.24 → 0.2.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|