# Adding this\_quarter? to complete the predicate family?

**URL:** <https://discuss.rubyonrails.org/t/adding-this-quarter-to-complete-the-predicate-family/91262>\
**Category:** rubyonrails-core\
**Created:** [June 28, 2026, 9:32am UTC](https://discuss.rubyonrails.org/t/adding-this-quarter-to-complete-the-predicate-family/91262 "2026-06-28T09:32:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![55728](https://sea2.discourse-cdn.com/rubyonrails/user_avatar/discuss.rubyonrails.org/55728/32/13985_2.png) [@55728](https://discuss.rubyonrails.org/u/55728)\
**Post date:** [June 28, 2026, 9:32am UTC](https://discuss.rubyonrails.org/t/adding-this-quarter-to-complete-the-predicate-family/91262/1 "2026-06-28T09:32:43Z")

</div>

`this_week?`, `this_month?`, and `this_year?` were introduced in [#55770](https://github.com/rails/rails/pull/55770), but `this_quarter?` was not included. Looking at the full method matrix for date/time periods, quarter is fully supported across every other verb:

```ruby
               week month quarter year
beginning_of_* ✓ ✓ ✓ ✓
end_of_* ✓ ✓ ✓ ✓
all_* ✓ ✓ ✓ ✓
next_* ✓ ✓ ✓ ✓
prev_* ✓ ✓ ✓ ✓
this_*? ✓ ✓ — ✓

```

`this_quarter?` is the only gap in the entire grid. Today this requires `Date.current.all_quarter.include?(date)`, while the week/month/year cases each have a one-call predicate. The implementation would follow the same pattern as its siblings:

```ruby
def this_quarter?
  ::Date.current.all_quarter.include?(to_date)
end

```

It’s purely additive and fully backward-compatible. Quarter-based checks come up fairly often in financial reporting and billing contexts. Would this be welcome as a PR?

---

<div class="post-metadata">

**Author:** ![55728](https://sea2.discourse-cdn.com/rubyonrails/user_avatar/discuss.rubyonrails.org/55728/32/13985_2.png) [@55728](https://discuss.rubyonrails.org/u/55728)\
**Post date:** [July 3, 2026, 10:41am UTC](https://discuss.rubyonrails.org/t/adding-this-quarter-to-complete-the-predicate-family/91262/2 "2026-07-03T10:41:07Z")

</div>

PR opened: [#57963](https://github.com/rails/rails/pull/57963). Happy to adjust if there are any concerns.

---

<div class="post-metadata">

**Author:** ![55728](https://sea2.discourse-cdn.com/rubyonrails/user_avatar/discuss.rubyonrails.org/55728/32/13985_2.png) [@55728](https://discuss.rubyonrails.org/u/55728)\
**Post date:** [July 4, 2026, 2:09pm UTC](https://discuss.rubyonrails.org/t/adding-this-quarter-to-complete-the-predicate-family/91262/3 "2026-07-04T14:09:25Z")

</div>

The PR has been merged!

Thank you to everyone who gave it a ❤ — it helped confirm the direction. Also opened a follow-up ([#57997](https://github.com/rails/rails/pull/57997)) to bring the sibling predicates in line with `cover?` for better performance, as suggested by @fatkodima during review.
