cocoon/spec/dummy/app/models/post.rb

6 lines
168 B
Ruby

class Post < ActiveRecord::Base
has_many :comments
has_many :admin_comments, :class_name => "Comment", :conditions => { :author => "Admin" }
has_many :people
end