Skip to content

Commit

Permalink
Replace deprecated #find_all_by_* with #where (see papyri#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanfb committed Jan 26, 2021
1 parent f6fad88 commit 7c3a507
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/mailers/emailer_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def identifier_email(topic,identifiers,board_publication,receipients,attach_cont
attachments.inline['attachment.txt'] = document_content
end
if include_comments
@comments = Comment.find_all_by_publication_id(identifiers[0].publication.origin.id)
@comments = Comment.where(publication_id: identifiers[0].publication.origin.id)
else
@comments = []
end
Expand Down

0 comments on commit 7c3a507

Please sign in to comment.