Sorry, what MaD and I were hinting at was something more along the lines 
of:

ActiveRecord > RemoteModel > RemoteSX(n)Model

where all the common things (like the readonly? and the 
find_incomplete_tasklist methods, or any new common methods) are defined 
in the RemoteModel class

RemoteModel is declared an abstract_class.  When RemoteSX3Model (or 4 or 
5 - your 'concrete' classes) inherits from RemoteModel, those classes 
don't need to define the methods already present in RemoteModel (unless 
they are overriding the definition), and you get a single source for 
your method code that is shared among the concrete models.

-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to