Mercurial > hg > soundsoftware-site
view test/exemplars/enabled_module_exemplar.rb @ 155:1ca23eedd587 feature_20
* More helpful names for the project modules -- especially the Embedded module
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Thu, 27 Jan 2011 11:04:34 +0000 |
parents | 513646585e45 |
children | cbb26bc654de |
line wrap: on
line source
class EnabledModule < ActiveRecord::Base generator_for :name, :method => :next_name def self.next_name @last_name ||= 'module_001' @last_name.succ! @last_name end end