Pry.config.print = proc do |output, value, _pry_|
case value
when ActiveRecord::Relation
output.puts "=> #{value.to_s}"
else
Pry::ColorPrinter.default(output, value, _pry_)
end
end
Since we're in a Rails project, can we move this into a config file?
(Trying to combat the creeping scourge of files in the root folder.)
Right now we have this
.pryrc
:Since we're in a Rails project, can we move this into a config file?
(Trying to combat the creeping scourge of files in the root folder.)