Mercurial > hg > soundsoftware-site
view test/exemplars/.svn/text-base/comment_exemplar.rb.svn-base @ 836:c7ef5a1ed2d3 cannam
Merge
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Wed, 01 Feb 2012 11:06:57 +0000 |
parents | 513646585e45 |
children |
line wrap: on
line source
class Comment < ActiveRecord::Base generator_for :commented, :method => :generate_news generator_for :author, :method => :generate_author generator_for :comments => 'What great news this is.' def self.generate_news News.generate! end def self.generate_author User.generate_with_protected! end end