Remove attr_accessible from Program and Cfp, final fixes after introducing strong params

This commit is contained in:
Stella Rouzi 2016-01-13 14:15:12 +02:00 committed by Henne Vogelsang
parent 62a7e724a2
commit a0d045e156
8 changed files with 95 additions and 105 deletions

View file

@ -48,7 +48,7 @@
%br
#{pluralize(event.voters.length, 'voter')}
%br
- @program.cfp.rating.times do |counter|
- @program.rating.times do |counter|
- if event.average_rating.to_f.round == counter+1
= label_tag "label_rating", "", :class => "avgrating", :avgrate => true
= javascript_tag "$('label[avgrate=true]').prevAll().andSelf().addClass('bright');"