Sha256: 46ea5c99c86a53c74c71f913d9e8cda8259e8ae20b77cc20622d4156d2610eca

Contents?: true

Size: 279 Bytes

Versions: 2

Compression:

Stored size: 279 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
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree-faq-2.2.0 app/models/spree/question_category.rb
spree-faq-2.1.0 app/models/spree/question_category.rb