Skip to content
This repository was archived by the owner on May 26, 2020. It is now read-only.

Commit 10b02c8

Browse files
refactor cleaner comparison.
1 parent 230d3a8 commit 10b02c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/database_cleaner/base.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class Base
66
include Comparable
77

88
def <=>(other)
9-
(self.orm <=> other.orm) == 0 ? self.db <=> other.db : self.orm <=> other.orm
9+
[orm, db] <=> [other.orm, other.db]
1010
end
1111

1212
def initialize(desired_orm = nil,opts = {})

0 commit comments

Comments
 (0)