From e8a28d7fee2796b9e0d7c9c97a407867cf06dc84 Mon Sep 17 00:00:00 2001 From: Harald Reingruber Date: Fri, 11 Mar 2022 22:43:43 +0100 Subject: [PATCH] Add table_print for debugging ActiveRecord queries in the console --- Gemfile | 2 ++ Gemfile.lock | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Gemfile b/Gemfile index 1a56b334..fe7ceeed 100644 --- a/Gemfile +++ b/Gemfile @@ -85,6 +85,8 @@ group :development do # Get infos when not using proper eager loading gem 'bullet' + # Display Active Record queries as tables in the console + gem 'table_print' end group :development, :test do diff --git a/Gemfile.lock b/Gemfile.lock index 90d7272d..406314ee 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -513,6 +513,7 @@ GEM sqlite3 (1.3.13) sqlite3-ruby (1.3.3) sqlite3 (>= 1.3.3) + table_print (1.5.7) temple (0.8.2) therubyracer (0.12.3) libv8 (~> 3.16.14.15) @@ -646,6 +647,7 @@ DEPENDENCIES spreadsheet sprockets (< 4) sqlite3 (~> 1.3.6) + table_print therubyracer twitter-bootstrap-rails (~> 2.2.8) uglifier (>= 1.0.3)