blob: 5ffe9a94ab2aa639ef94fb0b287a52e50a6f56db (
plain)
1
2
3
4
5
6
7
8
9
10
|
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
|