To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / test / exemplars / change_exemplar.rb @ 442:753f1380d6bc
History | View | Annotate | Download (336 Bytes)
| 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
|