cocoon/spec/dummy/app/models/post.rb
fl00r 04c231570b Few minor fixes:
- Gemfile.lock is kicked out
- rdoc/task fix

Added support of  in associations
2012-03-12 23:07:10 +04:00

6 lines
165 B
Ruby

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