Add and apply Style/BlockDelimiters rubocop rule
We were already using it most of the time, but there were a few places were we used brackets for multiline blocks.
This commit is contained in:
@@ -7,10 +7,13 @@ class Admin::CommentsController < Admin::BaseController
|
||||
|
||||
respond_to do |format|
|
||||
format.html
|
||||
format.csv { send_data to_csv(Comment.sort_by_newest, Comment),
|
||||
type: "text/csv",
|
||||
disposition: "attachment",
|
||||
filename: "comments.csv" }
|
||||
|
||||
format.csv do
|
||||
send_data to_csv(Comment.sort_by_newest, Comment),
|
||||
type: "text/csv",
|
||||
disposition: "attachment",
|
||||
filename: "comments.csv"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user