lib/sitepress/rails_configuration.rb in sitepress-rails-0.1.20 vs lib/sitepress/rails_configuration.rb in sitepress-rails-0.1.21

- old
+ new

@@ -14,14 +14,14 @@ # Set defaults. def initialize self.routes = true self.parent_engine = Rails.application - self.cache_resources = parent_engine.config.cache_classes + self.cache_resources = !!parent_engine.config.cache_classes end def site - @site ||= Site.new(root_path: default_root, cache_resources: @cache_resources).tap do |site| + @site ||= Site.new(root_path: default_root).tap do |site| site.resources_pipeline << Extensions::PartialsRemover.new site.resources_pipeline << Extensions::RailsRequestPaths.new end end