Skip to content

Commit

Permalink
Merge pull request #6706 from samvera/fault-tolerant-comparison
Browse files Browse the repository at this point in the history
🐛 Favor fault tolerant comparison
  • Loading branch information
dlpierce authored Feb 20, 2024
2 parents 23d2d05 + 108a696 commit 612a58f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/hyrax/resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def work?
end

def ==(other)
attributes.except(:created_at, :updated_at) == other.attributes.except(:created_at, :updated_at)
attributes.except(:created_at, :updated_at) == other.attributes.except(:created_at, :updated_at) if other.respond_to?(:attributes)
end

def permission_manager
Expand Down

0 comments on commit 612a58f

Please sign in to comment.