Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge remote branch 'yannski/master'

  • Loading branch information...
commit b65076af263a15045a646da70a130bda0ed91453 2 parents 337fc63 + 35b84d0
Tobias Bielohlawek rngtng authored

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. +3 1 lib/big_sitemap.rb
4 lib/big_sitemap.rb
@@ -325,10 +325,12 @@ def url_for_sitemap(path)
325 325
326 326 class BigSitemapRails < BigSitemap
327 327
328   - include ActionController::UrlWriter if defined? Rails
329 328
330 329 def initialize(options={})
331 330 require 'action_controller'
  331 + # I get undefined method `include' for BigSitemapRails ...
  332 + # I'm forced to include this module before calling BigSitemapRails
  333 + #include Rails.application.routes.url_helpers if defined? Rails
332 334
333 335 DEFAULTS.merge!(:document_root => "#{Rails.root}/public", :url_options => default_url_options)
334 336 super(options)

0 comments on commit b65076a

Please sign in to comment.
Something went wrong with that request. Please try again.