app/controllers/manage/ballot_box/votes_controller.rb in sunrise-votes-0.1.1 vs app/controllers/manage/ballot_box/votes_controller.rb in sunrise-votes-0.1.2

- old
+ new

@@ -18,9 +18,13 @@ destroy!{ manage_ballot_box_votes_path( voteable_scope(@voteable) ) } end def show respond_with(@voteable) do |format| + format.html do + @max_created_at = @voteable.votes.maximum(:created_at) + @min_created_at = @voteable.votes.minimum(:created_at) + end format.json { render :json => @voteable.votes.chart(params[:id]) } end end protected