Browse Source

Merge pull request #1 from jackkinsella/master.

Fixed bad uri bug by switching to spree's internal mechanism for determining site_url
1-2-stable-sysmocom
Joshua Nussbaum 10 years ago
parent
commit
a2d9d968ad
  1. 2
      lib/spree_sitemap_generator/spree_defaults.rb

2
lib/spree_sitemap_generator/spree_defaults.rb

@ -1,6 +1,6 @@
module SpreeSitemapGenerator::SpreeDefaults
def default_url_options
{:host => URI.parse(SitemapGenerator::Sitemap.default_host).host}
{:host => "http://" + Spree::Config[:site_url]}
end
include ::Rails.application.routes.url_helpers

Loading…
Cancel
Save