2011-03-06 21:40:37 +00:00
|
|
|
class Post < ActiveRecord::Base
|
|
|
|
has_many :comments
|
2012-03-12 19:07:10 +00:00
|
|
|
has_many :admin_comments, class_name: "Comment", :conditions => { :author => "Admin" }
|
2011-04-24 12:36:50 +00:00
|
|
|
has_many :people
|
2011-03-06 21:40:37 +00:00
|
|
|
end
|