Sha256: cabc284576e636d919ed56b0ec8df397ad5646e16ce4b72589f3489851db1b38

Contents?: true

Size: 314 Bytes

Versions: 4

Compression:

Stored size: 314 Bytes

Contents

class Catalog < ActiveRecord::Base
  has_many :facets, :include => :labels, :dependent => :destroy
  has_many :classifications, :dependent => :destroy
  has_many :assets, :through => :classifications

  validates_presence_of :title



  #has_permalink :title

  #def to_param
  #  "#{id}-#{permalink}"
  #end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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