##// END OF EJS Templates
Updates mantis importer for new project name/identifier max lengths (#6446)....
Updates mantis importer for new project name/identifier max lengths (#6446). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4403 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r3009:5f8e9d711820
r4289:97a9210483c1
Show More
version_exemplar.rb
11 lines | 231 B | text/x-ruby | RubyLexer
class Version < ActiveRecord::Base
generator_for :name, :method => :next_name
generator_for :status => 'open'
def self.next_name
@last_name ||= 'Version 1.0.0'
@last_name.succ!
@last_name
end
end