Sha256: 05fffae7e79199cf86107d20b6c866c083a2d6340f9e1e3e08d66915215c0402
Contents?: true
Size: 876 Bytes
Versions: 3
Compression:
Stored size: 876 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 normalize_attributes :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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
enju_subject-0.1.1 | app/models/classification.rb |
enju_subject-0.1.0 | app/models/classification.rb |
enju_subject-0.1.0.pre34 | app/models/classification.rb |