Skip to content

Commit db7249a

Browse files
authored
Merge pull request rails#55098 from thehale/docs_extract_a_concern
Match code extracted into a concern in guides [skip ci]
2 parents 3b8d4da + c696628 commit db7249a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/source/getting_started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2315,7 +2315,7 @@ module Product::Notifications
23152315
end
23162316

23172317
def back_in_stock?
2318-
inventory_count_previously_was == 0 && inventory_count > 0
2318+
inventory_count_previously_was.zero? && inventory_count > 0
23192319
end
23202320

23212321
def notify_subscribers

0 commit comments

Comments
 (0)