Sha256: 049b9f157f38a6156ec372cc92d56a0eea8f6a11f2242dace00045aef8af28d4

Contents?: true

Size: 225 Bytes

Versions: 4

Compression:

Stored size: 225 Bytes

Contents

module Spree
  class Question < ActiveRecord::Base
    acts_as_list

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spree-faq-2.4.0 app/models/spree/question.rb
spree-faq-2.3.0 app/models/spree/question.rb
spree-faq-2.2.1 app/models/spree/question.rb
spree-faq-2.1.1 app/models/spree/question.rb