Mercurial > hg > soundsoftware-site
view test/exemplars/custom_field_exemplar.rb @ 68:60c0a4e08e09 luisf
Feature #35: The projects page now is separated in "My Projects" and "Other Projects".
author | luisf |
---|---|
date | Mon, 06 Dec 2010 17:50:43 +0000 |
parents | 513646585e45 |
children | cbb26bc654de |
line wrap: on
line source
class CustomField < ActiveRecord::Base generator_for :name, :method => :next_name generator_for :field_format => 'string' def self.next_name @last_name ||= 'CustomField0' @last_name.succ! @last_name end end