comparison test/exemplars/.svn/text-base/change_exemplar.rb.svn-base @ 0:513646585e45

* Import Redmine trunk SVN rev 3859
author Chris Cannam
date Fri, 23 Jul 2010 15:52:44 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:513646585e45
1 class Change < ActiveRecord::Base
2 generator_for :action => 'A'
3 generator_for :path, :method => :next_path
4 generator_for :changeset, :method => :generate_changeset
5
6 def self.next_path
7 @last_path ||= 'test/dir/aaa0001'
8 @last_path.succ!
9 @last_path
10 end
11
12 def self.generate_changeset
13 Changeset.generate!
14 end
15 end