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 7c3a507 commit 67573cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/identifier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ def update_revision_desc(comment_text, user)
# assume context is from finalizing publication, so parent is board's copy
parent_classes = self.parent.owner.identifier_classes

Comment.find_all_by_publication_id(self.publication.origin.id).each do |c|
Comment.where(publication_id: self.publication.origin.id).each do |c|
if(parent_classes.include?(c.identifier.class.to_s))
change_desc_content = add_change_desc( "#{c.reason.capitalize} - " + c.comment, c.user, change_desc_content, c.created_at.localtime.xmlschema )
commit_message += " - #{c.reason.capitalize} - #{c.comment} (#{c.user.human_name})\n"
Expand Down

0 comments on commit 67573cf

Please sign in to comment.