Sha256: 4242510066eb58f392916344a016b997b62a5453168de889f75dff5f2d3b1ac7

Contents?: true

Size: 597 Bytes

Versions: 10

Compression:

Stored size: 597 Bytes

Contents

module Enjoy
  module Models
    module Mongoid
      module SitemapData
        extend ActiveSupport::Concern
        
        included do
          field :sitemap_show,        type: Boolean, default: true
          field :sitemap_lastmod,     type: DateTime
          field :sitemap_changefreq,  type: String,   default: 'daily'
          field :sitemap_priority,    type: Float

          scope :sitemap_show,    -> { where(sitemap_show: true) }
          scope :for_sitemap,     -> { sitemap_show }
          scope :show_in_sitemap, -> { sitemap_show }
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
enjoy_cms-0.3.0.4 lib/enjoy/models/mongoid/sitemap_data.rb
enjoy_cms-0.3.0.3 lib/enjoy/models/mongoid/sitemap_data.rb
enjoy_cms-0.3.0.2 lib/enjoy/models/mongoid/sitemap_data.rb
enjoy_cms-0.2.1 lib/enjoy/models/mongoid/sitemap_data.rb
enjoy_cms-0.2.0.3.2 lib/enjoy/models/mongoid/sitemap_data.rb
enjoy_cms-0.2.0.3.1 lib/enjoy/models/mongoid/sitemap_data.rb
enjoy_cms-0.2.0.3 lib/enjoy/models/mongoid/sitemap_data.rb
enjoy_cms-0.2.0.2 lib/enjoy/models/mongoid/sitemap_data.rb
enjoy_cms-0.2.0.1.beta lib/enjoy/models/mongoid/sitemap_data.rb
enjoy_cms-0.2.0.beta lib/enjoy/models/mongoid/sitemap_data.rb