Sha256: 5a78c88a23a6fd57d6a04b60af94434a1cfb76ce942671f60261ddb01c9da160

Contents?: true

Size: 704 Bytes

Versions: 6

Compression:

Stored size: 704 Bytes

Contents

module Enjoy::Seo
  module Models
    module Mongoid
      module SitemapData
        extend ActiveSupport::Concern

        included do

          if defined?(RailsAdminComments)
            include RailsAdminComments::Commentable
          end

          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

6 entries across 6 versions & 1 rubygems

Version Path
enjoy_cms_seo-0.4.1 lib/enjoy/seo/models/mongoid/sitemap_data.rb
enjoy_cms_seo-0.4.0.3 lib/enjoy/seo/models/mongoid/sitemap_data.rb
enjoy_cms_seo-0.4.0.2 lib/enjoy/seo/models/mongoid/sitemap_data.rb
enjoy_cms_seo-0.4.0.1 lib/enjoy/seo/models/mongoid/sitemap_data.rb
enjoy_cms_seo-0.4.0 lib/enjoy/seo/models/mongoid/sitemap_data.rb
enjoy_cms_seo-0.4.0.beta3 lib/enjoy/seo/models/mongoid/sitemap_data.rb