How does a subclass handle the table? If I have a table: tables, I then have a model Table.
If I make a subclass UberTable < Table, do I have to specify the original table name somewhere? On Jun 15, 2:16 pm, Jeremy Evans <[email protected]> wrote: > On Jun 15, 1:34 pm, cult hero <[email protected]> wrote: > > > I was debating between using Sequel validations and ActiveModel > > validations for a Rails 3 project I'm working on. In the end, the > > ActiveModel validations won out because I have a number of models that > > aren't Sequel and aren't even associated with a database, so it's nice > > to be able to share those. > > > A lot of the validations I am using often only matter to the end user > > and not to me or a lot of internal stuff. What I was thinking was that > > it'd be nice to subclass an existing model and add active model and > > some other stuff that's valid only on the front end. > > > Is there a good way to do this and is there a better solution to what > > I am trying to do? > > That should work fine, so I'd give it a shot. If you run into any > problems, please let me know. > > Thanks, > Jeremy -- You received this message because you are subscribed to the Google Groups "sequel-talk" 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/sequel-talk?hl=en.
