Browse files

Merge remote branch 'yannski/master'

  • Loading branch information...
2 parents 337fc63 + 35b84d0 commit b65076af263a15045a646da70a130bda0ed91453 Tobias Bielohlawek committed Mar 8, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/big_sitemap.rb
View
4 lib/big_sitemap.rb
@@ -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)

0 comments on commit b65076a

Please sign in to comment.