When running an ActiveRecord query in the rails console, I see as much of the result that fits on the screen, followed by a :
and a flashing cursor indicating a pager is in use.
Is there a way (e.g. a setting I can tinker with) to disable this pager for the whole rails console session, so all content displayed is printed to the rails console in its entirety without use of a pager?
What I know so far
I tried running these in a fresh rails console session:
IRB.conf[:USE_MULTILINE] = false
IRB.conf[:PAGER] = false
if defined?(Rails::Console)
Rails.application.console do
IRB.conf[:USE_MULTILINE] = false
IRB.conf[:PAGER] = false
end
end
But when I run an ActiveRecord query and the result doesn’t fit on screen it still invokes the pager just as before.