lib/housekeeping/combined_scopes.rb
Prefer 1.week
. Open
Open
t[:created_at].gt(1.weeks.ago).
- Read upRead up
- Exclude checks
This cop checks for correct grammar when using ActiveSupport's core extensions to the numeric classes.
Example:
# bad
3.day.ago
1.months.ago
# good
3.days.ago
1.month.ago
Prefer 1.week
. Open
Open
or(t[:updated_at].gt(1.weeks.ago)
- Read upRead up
- Exclude checks
This cop checks for correct grammar when using ActiveSupport's core extensions to the numeric classes.
Example:
# bad
3.day.ago
1.months.ago
# good
3.days.ago
1.month.ago
TODO found Open
Open
# TODO: DEPRECATE
- Exclude checks