Class: BigSitemapRails

Inherits:
BigSitemap show all
Defined in:
lib/big_sitemap.rb

Constant Summary

Constants inherited from BigSitemap

BigSitemap::DEFAULTS

Class Method Summary collapse

Methods inherited from BigSitemap

#add, #add_path, #add_static, #add_urls, #clean, #dir_files, #document_full, #file_name, #first_id_of_last_sitemap, #first_id_of_last_sitemap=, #generate, #generate_sitemap_index, #initialize, #ping_search_engines, #with_lock

Constructor Details

This class inherits a constructor from BigSitemap

Class Method Details

.generate(options = {}, &block) ⇒ Object



280
281
282
283
284
285
# File 'lib/big_sitemap.rb', line 280

def self.generate(options={}, &block)
  raise 'No Rails Environment loaded' unless defined? Rails

  DEFAULTS.merge!(:document_root => "#{Rails.root}/public", :url_options => default_url_options)
  super(options, &block)
end