should not error out now

Oleg committed Feb 14, 2012
commit 5b339cb3ef16e8c2d36791fc98464415e892a156
Showing 1 changed file with 3 additions and 1 deletions
app/controllers/cms_admin/base_controller.rb +3 -1
@@ @@ -13,7 +13,9 @@ class CmsAdmin::BaseController < ApplicationController
layout 'cms_admin'
- cache_sweeper *ComfortableMexicanSofa.config.admin_cache_sweeper
+ if ComfortableMexicanSofa.config.admin_cache_sweeper.present?
+ cache_sweeper *ComfortableMexicanSofa.config.admin_cache_sweeper
+ end
def jump
path = ComfortableMexicanSofa.config.admin_route_redirect