Sha256: 34f238a85ff2c1e8d31e3a2be418e7662a4ed61e93b23483d461083ac7a584e8

Contents?: true

Size: 346 Bytes

Versions: 1

Compression:

Stored size: 346 Bytes

Contents

class Spree::QuestionCategory < ActiveRecord::Base
  acts_as_list

  has_many :questions, class_name: 'Spree::Question'
  validates :name, presence: true
  validates :name, uniqueness: { case_sensitive: false }
  accepts_nested_attributes_for :questions, allow_destroy: true
  attr_accessible :name, :questions_attributes, :question, :answer
end

Version data entries

1 entries across 1 versions & 1 rubygems

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