cirandas.net

ref: master

plugins/custom_forms/lib/custom_forms_plugin/alternative.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
class CustomFormsPlugin::Alternative < ApplicationRecord
  self.table_name = :custom_forms_plugin_alternatives

  validates_presence_of :label

  belongs_to :field, :class_name => 'CustomFormsPlugin::Field'

  attr_accessible :label, :field, :position, :selected_by_default
end