diff options
author | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-01-10 22:44:10 +0100 |
---|---|---|
committer | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-01-10 22:44:10 +0100 |
commit | 49738b091eea2ca65d6f8c71b88747e314ec2950 (patch) | |
tree | 27a251dd797c9981747c9edf5e55139bd704c974 /app/views/gs_parameters/index.html.haml | |
parent | 48accca73c9564bd2ee8bd296d47eb5c27dbcd51 (diff) |
Refactoring and adding some caches.
Diffstat (limited to 'app/views/gs_parameters/index.html.haml')
-rw-r--r-- | app/views/gs_parameters/index.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/gs_parameters/index.html.haml b/app/views/gs_parameters/index.html.haml index 3c16806..b4a53e8 100644 --- a/app/views/gs_parameters/index.html.haml +++ b/app/views/gs_parameters/index.html.haml @@ -1,7 +1,7 @@ - title t("gs_parameters.index.page_title") - if @gs_parameters && @gs_parameters.count > 0 - - cache([@ps_parameters_unordered.order(:updated_at).last, @ps_parameters_unordered.pluck(:id)]) do + - cache([@ps_parameters_unordered.order(:updated_at).last, @ps_parameters_unordered.count]) do - if @sections %table - @sections.each do |section| |