Module: IP::Sitemap::ActiveRecord::ClassMethods

Defined in:
lib/ip/active_record.rb

Instance Method Summary collapse

Instance Method Details

#sitemap(options = {}) ⇒ Object



14
15
16
17
18
# File 'lib/ip/active_record.rb', line 14

def sitemap(options = {})
  options.reverse_merge(:batch_size => 50000, 
                        :route => "#{self.class.to_s.underscore}_url")
  self.sitemap_options = options
end