Permalink
Browse files

I'm forced to include this module before calling BigSitemapRails othe…

…rwise I get undefined method `include' for BigSitemapRails ...
  • Loading branch information...
1 parent 1d2b235 commit 35b84d01ea14751b25c1f6534e87e46df7b7bb0c @yannski yannski committed Feb 27, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/big_sitemap.rb
View
4 lib/big_sitemap.rb
@@ -341,7 +341,9 @@ class BigSitemapRails < BigSitemap
def initialize(options={})
require 'action_controller'
- include Rails.application.routes.url_helpers if defined? Rails
+ # 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
super options.merge(:default_url_options => default_url_options)
end

0 comments on commit 35b84d0

Please sign in to comment.