1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00

Removed cache for wrestlers show because it will never update. Removed cache for school show because buttons requiring permissions were showing

This commit is contained in:
2016-01-13 15:33:34 +00:00
parent 35e1a41220
commit f2e28505a6
2 changed files with 0 additions and 4 deletions

View File

@@ -36,7 +36,6 @@
<% end %>
<br>
<br>
<% cache ["schools", @school] do %>
<table class="table table-striped table-bordered table-condensed">
<thead>
<tr>
@@ -64,7 +63,6 @@
Yes
<% end %></td>
<td><%= wrestler.nextMatchBoutNumber %> <%= wrestler.nextMatchMatName %></td>
<% end %>
<td>
<%= link_to 'Show', wrestler , :class=>"btn btn-default btn-sm" %>
<% if can? :manage, wrestler.school %>

View File

@@ -5,7 +5,6 @@
<% if can? :manage, @school %>
| <%= link_to "Edit #{@wrestler.name}", edit_wrestler_path(@wrestler), :class=>"btn btn-primary" %>
<% end %>
<% cache ["wrestlers", @wrestler] do %>
<br>
<br>
<p>
@@ -45,4 +44,3 @@
<% @wrestler.deductedPoints.each do |w| %>
<div> Deducted points: <%= w.points %></div>
<% end %>
<% end %>