Sha256: 5744e70ba6e5438dcb6623a8397c018b8b09ac271f5ab9d073f3a889a6ea4d34

Contents?: true

Size: 719 Bytes

Versions: 2

Compression:

Stored size: 719 Bytes

Contents

module Georgia
  class Page < ActiveRecord::Base

    include Georgia::Indexer::Adapter
    is_searchable({
      solr: Georgia::Indexer::SolrAdapter::GeorgiaPageExtension,
      tire: Georgia::Indexer::TireAdapter::GeorgiaPageExtension
    })

    include Georgia::Concerns::Taggable
    include Georgia::Concerns::Orderable
    include Georgia::Concerns::Slugable
    include Georgia::Concerns::Revisionable
    include Georgia::Concerns::Publishable
    include Georgia::Concerns::Treeable
    include Georgia::Concerns::Cacheable

    acts_as_list scope: :parent #override Concerns::Orderable to include scope

    paginates_per 20

    scope :not_self, ->(page) {where('georgia_pages.id != ?', page.id)}

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
georgia-0.7.5 app/models/georgia/page.rb
georgia-0.7.4 app/models/georgia/page.rb