Sha256: 13a5689b5809696788270d9f3c1ad99b3469f16a9d50df17d90bb3055bdc1642

Contents?: true

Size: 211 Bytes

Versions: 3

Compression:

Stored size: 211 Bytes

Contents

class Choice < ActiveRecord::Base

  belongs_to :question, :inverse_of => :choices

  acts_as_list
  default_scope :order => :position
  
  validates_presence_of :value,
                        :question
  
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
census-0.5.0 app/models/choice.rb
census-0.4.4 app/models/choice.rb
census-0.4.3 app/models/choice.rb