Skip to content

Commit

Permalink
We should be building a new collection base class as configured
Browse files Browse the repository at this point in the history
  • Loading branch information
stevegeek committed Oct 8, 2024
1 parent 9617ee0 commit 044077d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/quo/relation_backed_query.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ def self.sanitize_sql_parameter(value)
prop :_rel_includes, _Nilable(_Any), reader: false, writer: false
prop :_rel_select, _Nilable(_Any), reader: false, writer: false


# Methods to prepare the query

# SQL 'SELECT' configuration, calls to underlying AR relation
Expand Down Expand Up @@ -124,7 +123,7 @@ def distinct(enabled = true)

# @rbs return: Quo::CollectionBackedQuery
def to_collection(total_count: nil)
Quo::CollectionBackedQuery.wrap(results.to_a).new(total_count:)
Quo.collection_backed_query_base_class.wrap(results.to_a).new(total_count:)
end

def results #: Quo::Results
Expand Down

0 comments on commit 044077d

Please sign in to comment.