app/models/spree/question.rb in spree-faq-2.0.0 vs app/models/spree/question.rb in spree-faq-2.0.1

- old
+ new

@@ -1,7 +1,9 @@ -class Spree::Question < ActiveRecord::Base - acts_as_list +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 - attr_accessible :question, :answer, :question_category_id, :question_category + 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 end