Hi,

On Sat, Oct 15, 2016, at 22:10, Usman Shahid wrote:
> 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.
> 


You're probably better off using arel[1] directly instead of bending ar
to your need.

[1] https://github.com/rails/arel

-- 
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+unsubscr...@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/1476538997.1551490.756863777.184C8B76%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to