I've noticed that several of my models contain the same set of named_scopes (ones for active, various access levels, etc.). I was thinking to avoid the duplication I'd try to pull that coat into a common file either included or extended from within my models.
I created a module, but that didn't seem to work w/ errors trying to use named_scope. I create a "base" model and made the other models child classes to it, but Rails looked for a bases table, which makes sense, but unfortunately the table doesn't exist. Is this possible or am I stuck duplicating the named_scopes across all of my models? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---