Sha256: bcdf8f652961529e91ca0096aebcb4122f0780676b568de1acd7e3168f8231d3
Contents?: true
Size: 567 Bytes
Versions: 5
Compression:
Stored size: 567 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, :scoped, :finders], scope: :site_id trackable :create, :update, :destroy, fields: [:title] end end
Version data entries
5 entries across 5 versions & 1 rubygems