Not sure if this should go in the dev list, but....:

We've made some changes to core hobo code for altering the site-search
functionality.

Firstly SEARCH_COLUMNS_GUESS was updated to include a description in
the search. This I guess could easily be defined outside of Hobo.

But I also made some changes to find_by_search in hobo.rb, and
site_search in controller.rb in order to
a) exclude model(s) from the search by defining search_targets and
passing to find_by_search
b) refine the search by adding conditions based on current_user

I managed to redefine these methods in our app (application.rb) but
got into trouble with it so ended up just changing Hobo for the
moment. Obviously this isnt ideal for us when we want to update, so
I'm wondering if its worth generalising our case and putting forward a
patch? Or, if there is a good way of overriding stuff like this in
Hobo.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to