lib/wally/search_features.rb in wally-0.0.2 vs lib/wally/search_features.rb in wally-0.0.3

- old
+ new

@@ -1,9 +1,13 @@ module Wally class SearchFeatures + def initialize lists_features + @lists_features = lists_features + end + def find(query) results = [] - ListsFeatures.features.each do |feature| + @lists_features.features.each do |feature| result = SearchResult.new(feature) if feature["tags"] feature["tags"].each do |tag| if tag["name"].downcase.include? query[:query].downcase