Skip to content

Commit

Permalink
implement equality for Hyrax::Group
Browse files Browse the repository at this point in the history
  • Loading branch information
tamsin johnson authored and no-reply committed Jun 29, 2022
1 parent c421679 commit c98f497
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/models/hyrax/group.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ def initialize(name)

attr_reader :name

##
# @return [Boolean]
def ==(other)
other.class == self.class &&
other.name == self.name
end

##
# @return [String] a local identifier for this group; for use (e.g.) in ACL
# data
Expand Down

0 comments on commit c98f497

Please sign in to comment.