Sha256: 543ffa625e60100cfebe795e7066d2088d88c9737aba680b2196436a168aa979
Contents?: true
Size: 623 Bytes
Versions: 4
Compression:
Stored size: 623 Bytes
Contents
module Guts # Category model class Category < ActiveRecord::Base extend FriendlyId include NavigatableConcern include TrackableConcern validates :title, presence: true, length: {minimum: 3} has_many :categorizations has_many :tracks, as: :object has_many :contents, through: :categorizations has_many :media, as: :filable, dependent: :destroy has_many :metafields, as: :fieldable, dependent: :destroy friendly_id :title, use: [:slugged, :finders] navigatable :title, format: ":title" trackable :create, :update, :destroy, fields: [:title, :slug] end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
guts-1.0.8 | app/models/guts/category.rb |
guts-1.0.7 | app/models/guts/category.rb |
guts-1.0.5 | app/models/guts/category.rb |
guts-1.0.3 | app/models/guts/category.rb |