Skip to content

Commit

Permalink
Fix double-output cache block for filtered events
Browse files Browse the repository at this point in the history
Closes #22
Closes #33
  • Loading branch information
reidab committed May 1, 2013
1 parent e1df5f6 commit 1bfe76e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/events/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<% tabindex_on '#search_field' %>

<%= cache_if(@perform_caching, CacheObserver.daily_key_for("events_index", request)) do %>
<% cache_if(@perform_caching, CacheObserver.daily_key_for("events_index", request)) do %>
<div id='list_description'>
<h2>Viewing <strong><%= @events.size %></strong>
<%= params[:date] ? 'filtered' : 'future' %> events
Expand Down

0 comments on commit 1bfe76e

Please sign in to comment.