From 7cba68f972ce29b6922653388cc4ed556996f1a7 Mon Sep 17 00:00:00 2001 From: JiangRu Date: Mon, 30 Mar 2015 14:57:01 +0800 Subject: [PATCH] add models_to_cache --- lib/gallery/engine.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/gallery/engine.rb b/lib/gallery/engine.rb index 53dc9f6..f92af24 100644 --- a/lib/gallery/engine.rb +++ b/lib/gallery/engine.rb @@ -7,6 +7,7 @@ module Gallery widget_methods ["widget"] # widget_settings [] widget_settings [{"data_count"=>10}] + models_to_cache [:album,:album_image] categorizable authorizable frontend_enabled