Browse Source

now works with sitemap_generator v2.0.0 and is locked to a version known to work

1-2-stable-sysmocom
Jack Kinsella 10 years ago
parent
commit
3552b46e97
  1. 2
      lib/spree_sitemap_generator.rb
  2. 2
      spree_sitemap_generator.gemspec

2
lib/spree_sitemap_generator.rb

@ -25,7 +25,7 @@ module SpreeSitemapGenerator
SitemapGenerator::Sitemap.default_host = "http://#{Spree::Config[:site_url]}"
require 'spree_sitemap_generator/spree_defaults'
SitemapGenerator::LinkSet.send :include, SpreeSitemapGenerator::SpreeDefaults
SitemapGenerator::Interpreter.send :include, SpreeSitemapGenerator::SpreeDefaults
Dir.glob(File.join(File.dirname(__FILE__), "../app/**/*_decorator*.rb")) do |c|
Rails.env.production? ? require(c) : load(c)

2
spree_sitemap_generator.gemspec

@ -17,5 +17,5 @@ Gem::Specification.new do |s|
s.add_dependency('spree_core', '>= 0.30.1')
s.add_dependency('sitemap_generator', '>= 1.3.4')
s.add_dependency('sitemap_generator', '= 2.0.1')
end
Loading…
Cancel
Save