Permalink
Browse files

Rails3 fix

  • Loading branch information...
1 parent 2d3a6c0 commit 1d2b235e0c590c659817b1333f72317197240860 @christianhellsten christianhellsten committed Feb 4, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/big_sitemap.rb
View
@@ -338,10 +338,10 @@ def url_for_sitemap(path)
class BigSitemapRails < BigSitemap
- include ActionController::UrlWriter if defined? Rails
def initialize(options={})
require 'action_controller'
+ include Rails.application.routes.url_helpers if defined? Rails
super options.merge(:default_url_options => default_url_options)
end
@@ -368,4 +368,4 @@ def table_name(model)
Extlib::Inflection.tableize(model.to_s)
end
-end
+end

0 comments on commit 1d2b235

Please sign in to comment.