Sha256: 4a450633a4fb321380e57ea378241fedc4a3b6c285d495db91325cd777799527

Contents?: true

Size: 562 Bytes

Versions: 3

Compression:

Stored size: 562 Bytes

Contents

module Georgia
  class Page < ActiveRecord::Base

    include Georgia::Indexer::Adapter
    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

3 entries across 3 versions & 1 rubygems

Version Path
georgia-0.7.8 app/models/georgia/page.rb
georgia-0.7.7 app/models/georgia/page.rb
georgia-0.7.6 app/models/georgia/page.rb