view test/exemplars/query_exemplar.rb @ 20:f68b86893f8e yuya

* Give boxes a better-defined outline, make logo image transparent, a few other style tweaks
author Chris Cannam
date Fri, 17 Sep 2010 17:38:00 +0100
parents 513646585e45
children cbb26bc654de
line wrap: on
line source
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