Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
7cf10ebc
Commit
7cf10ebc
authored
May 13, 2020
by
Alex Kalderimis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
StaticModel equality simplification
parent
4e5a568b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
lib/static_model.rb
lib/static_model.rb
+1
-5
No files found.
lib/static_model.rb
View file @
7cf10ebc
...
@@ -40,10 +40,6 @@ module StaticModel
...
@@ -40,10 +40,6 @@ module StaticModel
end
end
def
==
(
other
)
def
==
(
other
)
if
other
.
is_a?
::
StaticModel
other
.
present?
&&
other
.
is_a?
(
self
.
class
)
&&
id
==
other
.
id
id
==
other
.
id
else
super
end
end
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment