Closed k-rudy closed 4 years ago
Fixes the issue in Rails 6+ that has by default belongs_to_required_by_default = true setting enabled.
belongs_to_required_by_default = true
As a a result if any reader defines default scope and reader instance does not match that scope mark_as_read! fails with Reader must exist then
mark_as_read!
Reader must exist
Thanks.
Great, thanks! Would you mind adding a test to verify your change?
@ledermann done
Thanks a lot, @k-rudy!
Fixes the issue in Rails 6+ that has by default
belongs_to_required_by_default = true
setting enabled.As a a result if any reader defines default scope and reader instance does not match that scope
mark_as_read!
fails withReader must exist
thenThanks.