Sha256: 34340c9625d548fc58df84cb4694a71305151073ec10ae9200b2bd7f51b47c89

Contents?: true

Size: 608 Bytes

Versions: 6

Compression:

Stored size: 608 Bytes

Contents

class Page < ActiveRecord::Base
  include Concerns::Taggable
  include Concerns::Parentable
  include Concerns::Visible
  include Concerns::Seo
  include Concerns::Deletable
  include Concerns::Draggable
  include Concerns::FlexibleContent

  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-1.0.4 app/models/page.rb
udongo-1.0.3 app/models/page.rb
udongo-1.0.2 app/models/page.rb
udongo-1.0.1 app/models/page.rb
udongo-1.0.0 app/models/page.rb
udongo-0.1.0 app/models/page.rb