lib/spotlight/query.rb in spotlight-0.0.5 vs lib/spotlight/query.rb in spotlight-0.0.6
- old
+ new
@@ -17,12 +17,12 @@
@query_string = query_string
@scopes = []
end
def execute
- @md_query = MDQueryNative.new(query_string)
- @md_query.set_search_scopes(@scopes)
- @md_query.execute
+ md_query = MDQueryNative.new(query_string)
+ md_query.set_search_scopes(scopes)
+ md_query.execute
end
def to_saved_search(filename)
obj = {
'RawQuery' => query_string,