Sha256: ade269295bebaacc7d5453d1e188b10cde86a109478c2e9eb565e7c01169b4d5
Contents?: true
Size: 832 Bytes
Versions: 2
Compression:
Stored size: 832 Bytes
Contents
module RailsSitemap class Engine < ::Rails::Engine isolate_namespace RailsSitemap initializer 'rails_sitemap', before: :load_config_initializers do |app| Rails.application.routes.append do mount RailsSitemap::Engine => '/' end Mime::Type.register 'text/xml', :kml end end class << self mattr_accessor :models_for_sitemap, :updated_at, :priority, :update_frequency_for_app, :update_frequency_for_models, :locations self.models_for_sitemap = [] self.updated_at = DateTime.now.to_s self.priority = 0.5 self.update_frequency_for_app = 'always' self.update_frequency_for_models = 'weekly' self.locations = [] end def self.setup(&block) yield self end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rails_sitemap-0.2.5 | lib/rails_sitemap/engine.rb |
rails_sitemap-0.2.4 | lib/rails_sitemap/engine.rb |