Sha256: a2138e14bfa4d1897f0a182665933cee70998931c0e8f5641f9cef74134c801b
Contents?: true
Size: 520 Bytes
Versions: 2
Compression:
Stored size: 520 Bytes
Contents
class Post < ActiveRecord::Base belongs_to :author has_many :comments, :order => "body" has_one :very_special_comment, :class_name => "VerySpecialComment" has_many :special_comments, :class_name => "SpecialComment" has_and_belongs_to_many :categories has_and_belongs_to_many :special_categories, :join_table => "categories_posts" def self.what_are_you 'a post...' end end class SpecialPost < Post; end; class StiPost < Post has_one :special_comment, :class_name => "SpecialComment" end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
activerecord-1.12.1 | test/fixtures/post.rb |
activerecord-1.12.2 | test/fixtures/post.rb |