![]() We mimic the behaviour used with `#inspect`, only fetching up to 11 elements if records are not loaded already. Here's the reproduction: ``` require "activerecord" ActiveRecord::Base.establish_connection YOUR_DB_URL_THERE ActiveRecord::Migration.new.tap do |m| m.create_table :foos do |t| t.text :name end end class Foo < ActiveRecord::Base end 100.times { Foo.create(name: "foo#{_1}") } pp Foo.all # loads the whole table. ``` Signed-off-by: Ulysse Buonomo <buonomo.ulysse@gmail.com> |
||
---|---|---|
.. | ||
active_record | ||
arel | ||
rails/generators | ||
active_record.rb | ||
arel.rb |