aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/relation.rb
diff options
context:
space:
mode:
authoreileencodes <eileencodes@gmail.com>2017-11-26 10:22:54 -0500
committereileencodes <eileencodes@gmail.com>2017-11-26 10:22:54 -0500
commitd7ab5710916f8ee58a970312e9bc9276022fe3a6 (patch)
tree9ddce9ac775c41d93a8b6a9bb76e767f1b5c39a0 /activerecord/lib/active_record/relation.rb
parentcdc46750ca4ae2fc21020b36d5b94fd708d7b5d2 (diff)
downloadrails-d7ab5710916f8ee58a970312e9bc9276022fe3a6.tar.gz
rails-d7ab5710916f8ee58a970312e9bc9276022fe3a6.tar.bz2
rails-d7ab5710916f8ee58a970312e9bc9276022fe3a6.zip
Revert "Merge pull request #31006 from rails/kamipo/ordinal_methods_should_respect_loaded_records"
This reverts commit 0f79ab91150b4cdb6c018530978a3395962c7a02, reversing changes made to d575f7f2e737739302a0e8210d01c10f5d4e2c35. This PR philosophically conflicts with #30800 and Matthew thinks we should hold off merging this until we find concensus. Reverting since we're about to cut a release for 5.2.
Diffstat (limited to 'activerecord/lib/active_record/relation.rb')
-rw-r--r--activerecord/lib/active_record/relation.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/relation.rb b/activerecord/lib/active_record/relation.rb
index d3b8091665..081ef5771f 100644
--- a/activerecord/lib/active_record/relation.rb
+++ b/activerecord/lib/active_record/relation.rb
@@ -544,7 +544,6 @@ module ActiveRecord
end
@records.each(&:readonly!) if readonly_value
- @offsets = {} unless @offsets.empty?
@loaded = true
@records