diff --git a/Gemfile.lock b/Gemfile.lock index bcb7a111..9b01562c 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -237,7 +237,7 @@ GEM base64 kramdown (2.5.1) rexml (>= 3.3.9) - language_server-protocol (3.17.0.3) + language_server-protocol (3.17.0.4) link_header (0.0.8) listen (3.9.0) rb-fsevent (~> 0.10, >= 0.10.3) @@ -513,7 +513,7 @@ GEM opentelemetry-api (~> 1.0) ostruct (0.6.1) parallel (1.26.3) - parser (3.3.6.0) + parser (3.3.7.0) ast (~> 2.4.1) racc pdf-reader (2.13.0) @@ -632,7 +632,7 @@ GEM rspec-mocks (~> 3.13) rspec-support (~> 3.13) rspec-support (3.13.1) - rubocop (1.69.2) + rubocop (1.70.0) json (~> 2.3) language_server-protocol (>= 3.17.0) parallel (~> 1.10) @@ -646,8 +646,8 @@ GEM parser (>= 3.3.1.0) rubocop-capybara (2.21.0) rubocop (~> 1.41) - rubocop-govuk (5.0.7) - rubocop (= 1.69.2) + rubocop-govuk (5.0.8) + rubocop (= 1.70.0) rubocop-ast (= 1.37.0) rubocop-capybara (= 2.21.0) rubocop-rails (= 2.28.0) @@ -739,7 +739,7 @@ GEM bigdecimal (~> 3.1) tzinfo (2.0.6) concurrent-ruby (~> 1.0) - unicode-display_width (3.1.3) + unicode-display_width (3.1.4) unicode-emoji (~> 4.0, >= 4.0.4) unicode-emoji (4.0.4) uri (1.0.2) diff --git a/app/models/travel_advice_edition.rb b/app/models/travel_advice_edition.rb index c5668809..1fbb4a11 100644 --- a/app/models/travel_advice_edition.rb +++ b/app/models/travel_advice_edition.rb @@ -199,7 +199,7 @@ def has_valid_change_description_for_scheduling? def created_by creation = actions.detect do |a| - a.request_type == Action::CREATE || a.request_type == Action::NEW_VERSION + [Action::CREATE, Action::NEW_VERSION].include?(a.request_type) end creation.requester if creation end