From 73bb74a0d2f2c06048a5a0f86cfe9091c81a4a76 Mon Sep 17 00:00:00 2001 From: Oleh Fedorenko Date: Fri, 20 Sep 2024 14:15:59 +0000 Subject: [PATCH] Fixes #37848 - Support Rails 7.0 --- config/routes.rb | 2 +- test/test_plugin_helper.rb | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index 1a0431e4f..22e3899ca 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -8,7 +8,7 @@ :apiv => /v2/, :constraints => ApiConstraints.new(version: 2, default: true) do constraints(:id => %r{[^\/]+}) do - resources :hosts, :only => [] do + resources :hosts, :except => [:new, :edit] do member do post :play_roles get :ansible_roles diff --git a/test/test_plugin_helper.rb b/test/test_plugin_helper.rb index 968cd77e9..ff5ca6341 100644 --- a/test/test_plugin_helper.rb +++ b/test/test_plugin_helper.rb @@ -1,7 +1,6 @@ # frozen_string_literal: true require 'test_helper' -require 'facets' def ansible_fixture_file(filename) File.join(