Mercurial > hg > soundsoftware-site
view test/exemplars/comment_exemplar.rb @ 907:df51e8ff578d redmine-1.3
Remove .svn directories from subdirectories in preparation for merging from newer svn repo format
author | Chris Cannam |
---|---|
date | Fri, 24 Feb 2012 18:29:34 +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