How can I create activerecord models that are subsets of a certain model?

Posted by gsiener on Stack Overflow See other posts from Stack Overflow or by gsiener
Published on 2010-05-14T01:32:19Z Indexed on 2010/05/14 4:54 UTC
Read the original article Hit count: 202

I've seen this before but can't figure out what the correct term is. Basically, I'd like to create models for a specific subset of table data. E.g. (these are not the real classes)

class Person < ActiveRecord::Base

class Man < Person
  <something here> :gender => 'male'

© Stack Overflow or respective owner

Related posts about activerecord

Related posts about inheritance