repo.or.cz
/
askyou.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
;]
[askyou.git]
/
test
/
exemplars
/
query_exemplar.rb
blob
db32e938afa5f0f47a0b9121a0853e85b73d76e1
1
class Query < ActiveRecord::Base
2
generator_for :name, :method => :next_name
3
4
def self.next_name
5
@last_name ||= 'Query 0'
6
@last_name.succ!
7
@last_name
8
end
9
end