Sha256: aacf5664ab769a8b18c83c6285036e70057e02fb2be62c787f26caab2b639ae3

Contents?: true

Size: 221 Bytes

Versions: 2

Compression:

Stored size: 221 Bytes

Contents

module Binda
  class Choice < ApplicationRecord

  	belongs_to :field_setting
  	belongs_to :selectable, polymorphic: true, optional: true

		validates :label, presence: true
		validates :value, presence: true

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
binda-0.0.6 app/models/binda/choice.rb
binda-0.0.5 app/models/binda/choice.rb