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

6 lines
165 B
Ruby
Raw Normal View History

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