You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the latest release, this method was updated to be smarter and only load the count instead of all the records. But, the case of passing args/block to this method was missed and breaks that functionality. It should now check if args/block has been passed in, and if so then call super and use normal functionality; otherwise use the optimized way of check if the count is positive:
moduleReactiveRecordclassCollectiondefany?(*args, &block)# If we are doing anything other than just checking if there is an object in the collection,# proceed to the normal behaviorreturnsuperifargs&.length&.positive? || block.present?# Otherwise just check the count for efficiencycount.positive?endendend
The text was updated successfully, but these errors were encountered:
In the latest release, this method was updated to be smarter and only load the count instead of all the records. But, the case of passing args/block to this method was missed and breaks that functionality. It should now check if args/block has been passed in, and if so then call super and use normal functionality; otherwise use the optimized way of check if the count is positive:
The text was updated successfully, but these errors were encountered: