Made rubocop happy by formatting and minor syntax tweaks.

This commit is contained in:
Matt Amos 2016-08-22 17:23:38 +01:00
parent 5cc0eba3f1
commit 757a1aaa85
18 changed files with 511 additions and 608 deletions

View file

@ -153,7 +153,7 @@ class DiaryEntryController < ApplicationController
if @entry
@title = t "diary_entry.view.title", :user => params[:display_name], :title => @entry.title
if params[:comment_id]
@reported_comment = DiaryComment.where(id: params[:comment_id])
@reported_comment = DiaryComment.where(:id => params[:comment_id])
end
else
@title = t "diary_entry.no_such_entry.title", :id => params[:id]