Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge remote branch 'yannski/master'

  • Loading branch information...
commit b65076af263a15045a646da70a130bda0ed91453 2 parents 337fc63 + 35b84d0
Tobias Bielohlawek rngtng authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/big_sitemap.rb
4 lib/big_sitemap.rb
View
@@ -325,10 +325,12 @@ def url_for_sitemap(path)
class BigSitemapRails < BigSitemap
- include ActionController::UrlWriter if defined? Rails
def initialize(options={})
require 'action_controller'
+ # I get undefined method `include' for BigSitemapRails ...
+ # I'm forced to include this module before calling BigSitemapRails
+ #include Rails.application.routes.url_helpers if defined? Rails
DEFAULTS.merge!(:document_root => "#{Rails.root}/public", :url_options => default_url_options)
super(options)
Please sign in to comment.
Something went wrong with that request. Please try again.