beispiel cache key

This commit is contained in:
Andreas Stephanides
2015-03-16 07:42:07 +01:00
parent e3faacf586
commit 4833c8d679

View File

@@ -82,7 +82,7 @@
</p> </p>
<%= link_to t("beispiel.zip") , beispiel_sammlung_lva_path(@lva), class: :linkbox %> <%= link_to t("beispiel.zip") , beispiel_sammlung_lva_path(@lva), class: :linkbox %>
<% @lva.beispiele.order(:datum).each do |b| %> <% @lva.beispiele.order(:datum).each do |b| %>
<% cache("beispiel_" +I18n.locale.to_s+b.id.to_s + "_" + b.updated_at.try(:utc).try(:to_s)) do %> <% cache("beispiel_" +I18n.locale.to_s+b.id.to_s+can?(:delete,b)+"_"+can?(:edit,b) + "_" + b.updated_at.try(:utc).try(:to_s)) do %>
<%= render b%> <%= render b%>
<% end %> <% end %>
<% end %> <% end %>