Ruby on Rails Saturday, October 15, 2016

Actually these tables and models are dynamically added to the database, every addition requires creating a new model in the system which contains nothing but the table name. I'm trying to avoid that by creating a single model which can handle multiple tables given a table name using ActiveRecord query interface.

On 15 October 2016 at 17:23, Greg Navis <contact@gregnavis.com> wrote:
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.

For more options, visit https://groups.google.com/d/optout.

--
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/CAAdbdezBpE14Zvu1Znxtb0xX6vjyG2vr-%3DXPHOe880P9yUWD5w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment