Sha256: 7ec9f4ecaedeb51d317a911c3c06ce341c28cbd931e0377783bf17b6207c57b9

Contents?: true

Size: 553 Bytes

Versions: 6

Compression:

Stored size: 553 Bytes

Contents

module Guts
  # Navigation model
  class Navigation < ActiveRecord::Base
    extend FriendlyId
    include TrackableConcern
    include MultisiteScopeConcern
    
    validates :title, presence: true
    
    belongs_to :site
    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

6 entries across 6 versions & 1 rubygems

Version Path
guts-1.3.0 app/models/guts/navigation.rb
guts-1.2.2 app/models/guts/navigation.rb
guts-1.2.1 app/models/guts/navigation.rb
guts-1.2.0 app/models/guts/navigation.rb
guts-1.1.1 app/models/guts/navigation.rb
guts-1.1.0 app/models/guts/navigation.rb