From d279bd73567f043543af0aad010208641ea13879 Mon Sep 17 00:00:00 2001 From: Minno Dang Date: Thu, 24 Aug 2023 17:18:53 +0100 Subject: [PATCH] Bump JQuery Rails gem, and also use JQuery 3. JQuery Rails gem homepage states that if we're using Rails 5+ then jquery_ujs isn't required and hence has been removed --- app/assets/javascripts/govuk-admin-template.js | 3 +-- govuk_admin_template.gemspec | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/govuk-admin-template.js b/app/assets/javascripts/govuk-admin-template.js index 67ff103..071c3e5 100644 --- a/app/assets/javascripts/govuk-admin-template.js +++ b/app/assets/javascripts/govuk-admin-template.js @@ -1,5 +1,4 @@ -//= require jquery -//= require jquery_ujs +//= require jquery3 //= require bootstrap //= require govuk-admin-template/govuk-admin //= require_tree ./govuk-admin-template/modules diff --git a/govuk_admin_template.gemspec b/govuk_admin_template.gemspec index aaf571c..692971a 100644 --- a/govuk_admin_template.gemspec +++ b/govuk_admin_template.gemspec @@ -17,7 +17,7 @@ Gem::Specification.new do |gem| gem.required_ruby_version = ">= 3.0" gem.add_dependency "bootstrap-sass", "~> 3.4" - gem.add_dependency "jquery-rails", "~> 4.3" + gem.add_dependency "jquery-rails", "~> 4.6" gem.add_dependency "plek", ">= 2.1" gem.add_dependency "rails", ">= 6"