Sha256: d0a4f7a197ee746baaf72137331b791779771c9b204f9733feab4b29ce419c31

Contents?: true

Size: 498 Bytes

Versions: 4

Compression:

Stored size: 498 Bytes

Contents

module Guts
  # Navigation model
  class Navigation < ActiveRecord::Base
    extend FriendlyId
    include TrackableConcern
    
    validates :title, presence: true
    
    has_many :tracks, as: :object
    has_many :navigation_items, dependent: :destroy
    has_many :media, as: :filable, dependent: :destroy
    has_many :metafields, as: :fieldable, dependent: :destroy
    
    friendly_id :title, use: [:slugged, :finders]
    trackable :create, :update, :destroy, fields: [:title]
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
guts-1.0.8 app/models/guts/navigation.rb
guts-1.0.7 app/models/guts/navigation.rb
guts-1.0.5 app/models/guts/navigation.rb
guts-1.0.3 app/models/guts/navigation.rb