Sha256: 512167dd8f157f19b54acefc9deb77d8bacda075c1e24f58d23a7deddc73d7c7
Contents?: true
Size: 565 Bytes
Versions: 2
Compression:
Stored size: 565 Bytes
Contents
module Georgia class Page < ActiveRecord::Base include Georgia::Concerns::Taggable include Georgia::Concerns::Orderable include Georgia::Concerns::Slugable include Georgia::Concerns::Revisionable include Georgia::Concerns::Publishable include Georgia::Concerns::Indexable 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.1 | app/models/georgia/page.rb |
georgia-0.7.0 | app/models/georgia/page.rb |