-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Valkyrie::ID#==
is not symmetric over String
#820
Comments
The implementation of class Moomin
def to_s
'moomin'
end
end
Moomin.new == Valkyrie::ID.new('moomin') # => false
Valkyrie::ID.new('moomin') == Moomin.new # => true |
no-reply
pushed a commit
that referenced
this issue
Feb 7, 2020
no-reply
pushed a commit
that referenced
this issue
Feb 7, 2020
no-reply
pushed a commit
that referenced
this issue
Feb 7, 2020
no-reply
pushed a commit
that referenced
this issue
Feb 7, 2020
no-reply
pushed a commit
that referenced
this issue
Feb 7, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After
Valkyrie.config.id_string_equality = true
:Complicating things further, these objects are symmetrically equal for purposes of
#<=>
:This can be fixed by providing a
Valkyrie::ID#to_str
, which will causeString
to useValkyrie::ID#==
to determine==
style equality.The text was updated successfully, but these errors were encountered: