Sha256: 8bba519942d97019eb45f860f77454c9db7ece4e87b9da1b9acc371796295c2d

Contents?: true

Size: 553 Bytes

Versions: 2

Compression:

Stored size: 553 Bytes

Contents

module Georgia
  class Page < ActiveRecord::Base

    include Georgia::Indexer
    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.3 app/models/georgia/page.rb
georgia-0.7.2 app/models/georgia/page.rb