From 09bec1f9be1133b583a897e0243c937da6861efa Mon Sep 17 00:00:00 2001 From: JiangRu Date: Mon, 30 Mar 2015 14:57:27 +0800 Subject: [PATCH] add models_to_cache --- lib/ad_banner/engine.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ad_banner/engine.rb b/lib/ad_banner/engine.rb index cfc045f..bcfa081 100644 --- a/lib/ad_banner/engine.rb +++ b/lib/ad_banner/engine.rb @@ -6,6 +6,7 @@ module AdBanner base_url File.expand_path File.dirname(__FILE__) widget_methods ["widget"] widget_settings [{"override_category_with"=>"banner","multiselect"=>false,"display_field"=>"title"}] + models_to_cache [:banner,:ad_image] taggable "Banner" categorizable authorizable