Commit 6a6f4039 authored by Eric Davis's avatar Eric Davis

Added missing Enumeration STI exemplars.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3670 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent f23aceba
class DocumentCategory < Enumeration
generator_for :name, :method => :next_name
generator_for :type => 'DocumentCategory'
def self.next_name
@last_name ||= 'DocumentCategory0'
@last_name.succ!
@last_name
end
end
class IssuePriority < Enumeration
generator_for :name, :method => :next_name
generator_for :type => 'IssuePriority'
def self.next_name
@last_name ||= 'IssuePriority0'
@last_name.succ!
@last_name
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment