##// END OF EJS Templates
Workaround for i18n 0.4.x with the old style syntax. #6428 #5608...
Workaround for i18n 0.4.x with the old style syntax. #6428 #5608 This will also silance the whole trace with the deprecation warning. Contributed by Felix Schäfer git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4183 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r3226:9044305b9335
r4069:768d67f27bf6
Show More
message_exemplar.rb
21 lines | 467 B | text/x-ruby | RubyLexer
class Message < ActiveRecord::Base
generator_for :subject, :method => :next_subject
generator_for :content, :method => :next_content
generator_for :board, :method => :generate_board
def self.next_subject
@last_subject ||= 'A Message'
@last_subject.succ!
@last_subject
end
def self.next_content
@last_content ||= 'Some content here'
@last_content.succ!
@last_content
end
def self.generate_board
Board.generate!
end
end