annotate .svn/pristine/36/36ee24f61bb993329a397c77fd4b05efc6e92acd.svn-base @ 1479:2d7e82037daa bibplugin_cache

Close obsolete branch bibplugin_cache
author Chris Cannam
date Thu, 22 Nov 2012 15:09:58 +0000
parents cbb26bc654de
children
rev   line source
Chris@909 1 class Issue < ActiveRecord::Base
Chris@909 2 generator_for :subject, :start => 'Subject 0'
Chris@909 3 generator_for :author, :method => :next_author
Chris@909 4 generator_for :priority, :method => :fetch_priority
Chris@909 5
Chris@909 6 def self.next_author
Chris@909 7 User.generate_with_protected!
Chris@909 8 end
Chris@909 9
Chris@909 10 def self.fetch_priority
Chris@909 11 IssuePriority.first || IssuePriority.generate!
Chris@909 12 end
Chris@909 13 end