Sha256: 30f418e5fa589ed341e94585c5d9a135b9857ede84b349b818e4fd301d89ce87
Contents?: true
Size: 621 Bytes
Versions: 1
Compression:
Stored size: 621 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 } elsif RocketCMS.active_record? end end def self.admin RocketCMS.sitemap_data_config end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ack_rocket_cms-0.7.6.2 | app/models/concerns/sitemap_data.rb |