<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Yes, this is supported.<div><br></div><div>class MyBaseClass</div><div>  self.abstract_class = true</div><div>end</div><div><br></div><div>class MySubClass < MyBaseClass</div><div>end</div><div><br></div><div><a href="http://api.rubyonrails.org/classes/ActiveRecord/Base.html">http://api.rubyonrails.org/classes/ActiveRecord/Base.html</a></div><div><br><div><div>On 11 Sep 2009, at 16:17, Simon Sebright wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<div id="MailContainerBody" style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-TOP: 15px" leftmargin="0" topmargin="0" canvastabstop="true" name="Compose message area">
<div><font face="Calibri">Hi</font></div>
<div><font face="Calibri"></font> </div>
<div><font face="Calibri">I was attempting to do a bit of refactoring.  I had 
one model class, in which I had defined a few operations. Then along came a 
second one, where I wanted the same operations, so I started to create a common 
base class for them, which naturally inherits from 
ActiveRecord::Base</font></div>
<div><font face="Calibri"></font> </div>
<div><font face="Calibri">Now, I get all sorts of errors, and it looks like rails 
is taking the base class name and assuming it'll find a table relating to it, 
which in my case it won't.</font></div>
<div><font face="Calibri"></font> </div>
<div><font face="Calibri">Is this somehow supported, or should I be using a 
module/mixin instead?</font></div>
<div><font face="Calibri"></font> </div>
<div><font face="Calibri">Thanks,<br>Simon</font></div></div>
_______________________________________________<br>Chat mailing list<br><a href="mailto:Chat@lists.lrug.org">Chat@lists.lrug.org</a><br>http://lists.lrug.org/listinfo.cgi/chat-lrug.org<br></blockquote></div><br></div></body></html>