Ruby on Rails Friday, October 14, 2016

Hi,

Is it possible in rails to write a generic ActiveRecord::Base child class which is bound with a table of our choice on runtime? for example if it has two functions 'foo' and 'bar' then i should be able to provide a table name on runtime e.g. 'table-a' or 'table-b' and execute these functions on it?

Regards,
Usman

--
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/CAAdbdeyCCbxhR7GBswu68HO0v%2BCP-t7S4M6BHh4uEHCKUKAeYg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment