##// END OF EJS Templates
Display project names in cross-project gantt PDF (#5904)....
Display project names in cross-project gantt PDF (#5904). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3883 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r3226:9044305b9335
r3769:cb5e63d846b6
Show More
news_exemplar.rb
16 lines | 373 B | text/x-ruby | RubyLexer
class News < ActiveRecord::Base
generator_for :title, :method => :next_title
generator_for :description, :method => :next_description
def self.next_title
@last_title ||= 'A New Item'
@last_title.succ!
@last_title
end
def self.next_description
@last_description ||= 'Some content here'
@last_description.succ!
@last_description
end
end