Mercurial > hg > soundsoftware-site
view test/exemplars/issue_exemplar.rb @ 909:cbb26bc654de redmine-1.3
Update to Redmine 1.3-stable branch (Redmine SVN rev 8964)
author | Chris Cannam |
---|---|
date | Fri, 24 Feb 2012 19:09:32 +0000 |
parents | 513646585e45 |
children |
line wrap: on
line source
class Issue < ActiveRecord::Base generator_for :subject, :start => 'Subject 0' generator_for :author, :method => :next_author generator_for :priority, :method => :fetch_priority def self.next_author User.generate_with_protected! end def self.fetch_priority IssuePriority.first || IssuePriority.generate! end end