Sha256: f1fba01453e2499188a377bd2cd33ac6c75c4f435946b06edb242d45c6b749b6

Contents?: true

Size: 880 Bytes

Versions: 2

Compression:

Stored size: 880 Bytes

Contents

class Classification < ActiveRecord::Base
  belongs_to :classification_type
  belongs_to :manifestation, touch: true

  validates_associated :classification_type
  validates_presence_of :category, :classification_type
  searchable do
    text :category, :note
    integer :classification_type_id
  end
  strip_attributes only: [:category, :url]

  paginates_per 10
end

# == Schema Information
#
# Table name: classifications
#
#  id                     :integer          not null, primary key
#  parent_id              :integer
#  category               :string           not null
#  note                   :text
#  classification_type_id :integer          not null
#  created_at             :datetime
#  updated_at             :datetime
#  lft                    :integer
#  rgt                    :integer
#  manifestation_id       :integer
#  url                    :string
#

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
enju_subject-0.2.0.beta.2 app/models/classification.rb
enju_subject-0.2.0.beta.1 app/models/classification.rb