diff --git a/Gemfile b/Gemfile index 552f0fd..363c3d8 100644 --- a/Gemfile +++ b/Gemfile @@ -5,6 +5,7 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" } ruby '2.5.1' +gem 'oj' gem 'pry-rails' # Bundle edge Rails instead: gem 'rails', github: 'rails/rails' gem 'rails', '~> 5.2.1' diff --git a/Gemfile.lock b/Gemfile.lock index e2469a0..8dc5c61 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -107,6 +107,7 @@ GEM nio4r (2.3.1) nokogiri (1.8.4) mini_portile2 (~> 2.3.0) + oj (3.4.0) pg (0.21.0) pry (0.11.3) coderay (~> 1.1.0) @@ -207,6 +208,7 @@ DEPENDENCIES ffaker jbuilder (~> 2.5) listen (>= 3.0.5, < 3.2) + oj pg pry-rails puma (~> 3.11) diff --git a/config/initializers/oj.rb b/config/initializers/oj.rb new file mode 100644 index 0000000..8c00f04 --- /dev/null +++ b/config/initializers/oj.rb @@ -0,0 +1 @@ +Oj.optimize_rails