From a7a0544156a6299f1933c234f172b6b768b06cad Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Mon, 20 Feb 2023 20:02:25 -0600 Subject: AƱade jsonapi-serializer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Gemfile | 3 +++ Gemfile.lock | 3 +++ 2 files changed, 6 insertions(+) diff --git a/Gemfile b/Gemfile index f3bea13..ecaa713 100644 --- a/Gemfile +++ b/Gemfile @@ -38,6 +38,9 @@ gem 'bootsnap', require: false # Use Rack CORS for handling Cross-Origin Resource Sharing (CORS), making cross-origin AJAX possible # gem "rack-cors" +# JSON serializer. +gem 'jsonapi-serializer' + group :development, :test do # See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem gem 'debug', platforms: %i[mri mingw x64_mingw] diff --git a/Gemfile.lock b/Gemfile.lock index 6a2b2b4..ad99571 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -79,6 +79,8 @@ GEM activesupport (>= 5.0) i18n (1.12.0) concurrent-ruby (~> 1.0) + jsonapi-serializer (2.2.0) + activesupport (>= 4.2) loofah (2.19.1) crass (~> 1.0.2) nokogiri (>= 1.5.9) @@ -170,6 +172,7 @@ PLATFORMS DEPENDENCIES bootsnap debug + jsonapi-serializer mysql2 puma (~> 5.0) rails (~> 7.0.4, >= 7.0.4.2) -- cgit v1.2.3