obsolete.ChilliProject/test/exemplars/query_exemplar.rb

10 lines
175 B
Ruby
Raw Normal View History

class Query < ActiveRecord::Base
generator_for :name, :method => :next_name
def self.next_name
@last_name ||= 'Query 0'
@last_name.succ!
@last_name
end
end