Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Want to make sure that those methods work on relation and return expected result when retation has or doesn't have any records. Those methods are delegated by https://github.com/rails/rails/blob/7cb451346618811796efce1f8a2bf576b8e4999c/activerecord/lib/active_record/relation/delegation.rb#L21, https://github.com/rails/rails/blob/7cb451346618811796efce1f8a2bf576b8e4999c/activerecord/lib/active_record/relation/delegation.rb#L95-L114, https://github.com/rails/rails/blob/7cb451346618811796efce1f8a2bf576b8e4999c/activerecord/lib/active_record/relation/delegation.rb#L56-L78 as I understand. Related to rails#39313
- Loading branch information