Sha256: 85f3040fa7ed571afa8e698bf64c87ad422297cf849ec1027fa934f54729fcaf

Contents?: true

Size: 726 Bytes

Versions: 6

Compression:

Stored size: 726 Bytes

Contents

class Page < ApplicationRecord
  include Concerns::Taggable
  include Concerns::Parentable
  include Concerns::Visible
  include Concerns::Seo
  include Concerns::Deletable
  include Concerns::Draggable
  include Concerns::FlexibleContent
  include Concerns::Imageable

  include Concerns::Searchable
  searchable_fields :title, :subtitle, :flexible_content

  include Concerns::Sortable
  sortable scope: [:parent_id]

  include Concerns::Translatable
  translatable_fields :title, :subtitle

  include Concerns::Cacheable
  cache_by :identifier

  has_many :navigation_items, dependent: :destroy

  validates :description, presence: true
  validates :identifier, uniqueness: { case_sensitive: false }, allow_blank: true
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
udongo-7.9.0 app/models/page.rb
udongo-7.8.1 app/models/page.rb
udongo-7.8.0 app/models/page.rb
udongo-7.7.2 app/models/page.rb
udongo-7.7.1 app/models/page.rb
udongo-7.7.0 app/models/page.rb