hey all
I posted this same topic yesterday and it never showed up on the group? I've heard reports of other peoples messages not showing up too... very annoying!
Anyway, I'd like to be able to have transient (no persistent data of their own) subclasses of my ActiveRecord classes but that seems to be problematic.
Basically I'd like to be able to do this...
class Film < ActiveRecord::Base ... ... end
class SomeTransient < Film ... ... end
class SomeOtherTransient < Film ... ... end
etc...
Then do this:
film = SomeTransient.find_by_title("some film title")
This just struck me actually... are ruby class methods not inheritable?
Clearly I could do all my stuff directly in the Film class but that would get messy since the film instances are going to be taking on many different personalities (lots of different derived attributes for each).
I'm not sure why this seems to be so difficult?
Thanks in advance! Tim