Given the following hierarchy
class Content < ActiveRecord::Base end
class Page < Content end
class Post < Content end
Is it possible to create for example, Page content (indirectly) using the following style:
c = Content.new c.type = Page c.title = 'test' c.save!
Looks like type is also a ruby method on the object.