Add AnnualReport::Source#report_statuses
method for subclasses to use (#31753)
This commit is contained in:
parent
559958f8c5
commit
4678473e54
10 changed files with 22 additions and 25 deletions
|
@ -10,6 +10,13 @@ class AnnualReport::Source
|
|||
|
||||
protected
|
||||
|
||||
def report_statuses
|
||||
@account
|
||||
.statuses
|
||||
.where(id: year_as_snowflake_range)
|
||||
.reorder(nil)
|
||||
end
|
||||
|
||||
def year_as_snowflake_range
|
||||
(beginning_snowflake_id..ending_snowflake_id)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue