Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def search_terms
- %w{identifier description author credit restrictions keywords asset_location}
- end
- def full_text(query)
- search = Asset.new_search
- search_terms.each do |term|
- search.conditions.send("#{term}_contains=", query)
- end
- search.conditions.any = true
- search.all
- end
Add Comment
Please, Sign In to add comment