Sha256: bd0853ed1642310d0a76163d21c348a3a93e401ff91403a1e6162fd0a0cead67

Contents?: true

Size: 285 Bytes

Versions: 1

Compression:

Stored size: 285 Bytes

Contents

class Spree::Question < ActiveRecord::Base
  acts_as_list

  belongs_to :question_category, class_name: 'Spree::QuestionCategory'
  validates  :question_category_id, :question, :answer, presence: true
  attr_accessible :question, :answer, :question_category_id, :question_category
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spree-faq-2.0.0 app/models/spree/question.rb