Mercurial > hg > soundsoftware-site
view test/exemplars/document_exemplar.rb @ 285:fa07572ee073 bug_95
Layout changes: indent as block instead of just first line; loosen spacing at bottom of explanatory labels
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Wed, 23 Mar 2011 11:31:14 +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