Sha256: 3dc80d99641a8fb7772616b9bd692302686b0923321503328d930ab48f85954a
Contents?: true
Size: 675 Bytes
Versions: 12
Compression:
Stored size: 675 Bytes
Contents
module SitemapData extend ActiveSupport::Concern SITEMAP_CHANGEFREQ_ARRAY = %w(always hourly daily weekly monthly yearly never) included do if RocketCMS.mongoid? 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 } elsif RocketCMS.active_record? end end def self.admin RocketCMS.sitemap_data_config end end
Version data entries
12 entries across 12 versions & 1 rubygems