Commit 02d3946a57223f56509fdad1a4cc57c224d2e4ec
1 parent
e8aff3e4
Exists in
master
and in
29 other branches
ActionItem25: added icon to denote product in search and made search return products as well
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1010 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
4 changed files
with
6 additions
and
0 deletions
Show diff stats
app/controllers/public/search_controller.rb
... | ... | @@ -24,6 +24,10 @@ class SearchController < ApplicationController |
24 | 24 | Profile.find_by_contents(query) |
25 | 25 | end |
26 | 26 | |
27 | + search do |query| | |
28 | + Product.find_by_contents(query) | |
29 | + end | |
30 | + | |
27 | 31 | # auxiliary method to search in all defined searches and collect the results |
28 | 32 | def search(query) |
29 | 33 | SEARCHES.inject([]) do |acc,finder| | ... | ... |
public/designs/icons/default/README
1.12 KB
public/designs/icons/default/style.css