Sha256: 0ba07c403c922088a8a0aee17fe00f1e5146b970400eb8787c7f3064ea86b4e4
Contents?: true
Size: 914 Bytes
Versions: 7
Compression:
Stored size: 914 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 # label :string #
Version data entries
7 entries across 7 versions & 1 rubygems