##// END OF EJS Templates
scm: mercurial: add --git option in 'hg diff' (#7253)....
scm: mercurial: add --git option in 'hg diff' (#7253). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4668 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r3226:9044305b9335
r4548:1ff52e5c5a58
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