public
Description: Rails Sitemap Plugin / Site Map Plugin for Rails. A beautiful rails sitemap plugin that talks to Google, Yahoo and MSN when updated. Sitemap features clean handcrafted XHTML, XML with XSLT and custom finder options for your named routes.
Homepage:
Clone URL: git://github.com/queso/sitemap.git
sitemap / init.rb
100644 11 lines (11 sloc) 0.572 kb
1
2
3
4
5
6
7
8
9
10
11
require 'sitemap'
require 'sitemap_fu'
require "#{directory}/app/controllers/sitemap_plugin_controller"
%w|models controllers|.each { |d| Dir["#{directory}/app/#{d}/*"].each { |f| require f.gsub(/\.rb/,'') } }
ActiveRecord::Base.class_eval do
  include Queso::Acts::Sitemap
end
SitemapsController.view_paths = [File.join(directory, 'app/views')]
SitemapSettingsController.view_paths = [File.join(directory, 'app/views')]
SitemapWidgetsController.view_paths = [File.join(directory, 'app/views')]
SitemapStaticLinksController.view_paths = [File.join(directory, 'app/views')]