Skip to content

Commit df61574

Browse files
Leave the submatchers_match? as the last check, as they're usually a slower check
1 parent 4ea3d9c commit df61574

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/shoulda/matchers/active_record/association_matcher.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1692,8 +1692,8 @@ def matches?(subject)
16921692
touch_correct? &&
16931693
types_correct? &&
16941694
strict_loading_correct? &&
1695-
submatchers_match? &&
1696-
deprecated_correct?
1695+
deprecated_correct? &&
1696+
submatchers_match?
16971697
end
16981698

16991699
def join_table_name

0 commit comments

Comments
 (0)