mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-19 04:49:15 +00:00
Rename #scoped_orders_relation
This commit is contained in:
@@ -31,7 +31,7 @@ module Reporting
|
||||
@renderer ||= ReportRenderer.new(self)
|
||||
end
|
||||
|
||||
def scoped_orders_relation
|
||||
def ransacked_orders_relation
|
||||
visible_orders_relation.ransack(ransack_params).result
|
||||
end
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ module Reporting
|
||||
|
||||
def report_query
|
||||
Queries::QueryBuilder.new(primary_model, grouping_fields).
|
||||
scoped_to_orders(scoped_orders_relation).
|
||||
scoped_to_orders(ransacked_orders_relation).
|
||||
scoped_to_line_items(visible_line_items_relation).
|
||||
with_managed_orders(managed_orders_relation).
|
||||
joins_order_and_distributor.
|
||||
|
||||
Reference in New Issue
Block a user