Skip to content

Commit

Permalink
feat: remove group, order limit and offset from count
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosgz committed Jul 31, 2024
1 parent a9e871a commit 8f9867a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/esse/active_record/collection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def each_batch_ids
end

def count
dataset.except(:includes, :preload, :eager_load).count
dataset.except(:includes, :preload, :eager_load, :order, :limit, :offset).count
end
alias_method :size, :count

Expand Down

0 comments on commit 8f9867a

Please sign in to comment.