view test/exemplars/document_exemplar.rb @ 823:73057b65abcb cannam

Merge
author Chris Cannam
date Fri, 16 Dec 2011 15:17:27 +0000
parents 513646585e45
children cbb26bc654de
line wrap: on
line source
class Document < ActiveRecord::Base
  generator_for :title, :method => :next_title

  def self.next_title
    @last_title ||= 'Document001'
    @last_title.succ!
    @last_title
  end
end