view test/exemplars/custom_value_exemplar.rb @ 1045:a4fc01ef34c0 cannam

Create and Continue -> Create and Add Another (#525)
author Chris Cannam
date Tue, 13 Nov 2012 21:55:10 +0000
parents 513646585e45
children
line wrap: on
line source
class CustomValue < ActiveRecord::Base
  generator_for :custom_field, :method => :generate_custom_field

  def self.generate_custom_field
    CustomField.generate!
  end
end