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:
@@ -75,8 +75,8 @@ class Poll::Question < ApplicationRecord
|
||||
end
|
||||
|
||||
def answers_with_read_more?
|
||||
question_answers.visibles.any? do |answer| answer.description.present? || answer.images.any? ||
|
||||
answer.documents.present? || answer.videos.present?
|
||||
question_answers.visibles.any? do |answer|
|
||||
answer.description.present? || answer.images.any? || answer.documents.present? || answer.videos.present?
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user