Sha256: 4ca6aae047317fcf178f2cba1ce94e70ede3f9575e4facc0b53f97035e03d7cc

Contents?: true

Size: 233 Bytes

Versions: 4

Compression:

Stored size: 233 Bytes

Contents

class Classification < ActiveRecord::Base
  belongs_to :catalog
  has_many :labelings, :dependent => :destroy
  has_many :labels, :through => :labelings
  belongs_to :asset, :counter_cache => true
  validates_presence_of :asset
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fassets_core-0.4.0 app/models/classification.rb
fassets_core-0.3.1 app/models/classification.rb
fassets_core-0.3.0 app/models/classification.rb
fassets_core-0.2.0 app/models/classification.rb