Greg
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/DDCF52E7-47BE-4B82-9823-885C7C9A8D7A%40gregnavis.com.
For more options, visit https://groups.google.com/d/optout.
I cannot find an alternative to this. What i'm trying to do is write a generic interface which can answer generic queries like search based on specific column and aggregate queries etc. Underlying table is provided to the Model on initialization and I want it hooked with that table so that I can run these active record generic queries (and some generic extensions) on the underlying table.
Also, how do I hack it? Is there any downside of doing it?
What Colin said. Alternatively, you could write a concern and include it in models you want to support in the search feature.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAA6WWt9d6%2BzhzUgTAt%3Da8pixgznBjycGYH_2dLuCbSWH7XpgSA%40mail.gmail.com.