From ed1db88926590810bbee95e64b31d0ddac16e1b7 Mon Sep 17 00:00:00 2001 From: Sergio Cambra Date: Wed, 2 Aug 2017 17:17:01 +0200 Subject: [PATCH] fix double / in jquery-ui for jquery-ui-rails 6 gem --- app/assets/javascripts/active_scaffold.js.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/active_scaffold.js.erb b/app/assets/javascripts/active_scaffold.js.erb index c92fa453f3..74276f6b6b 100644 --- a/app/assets/javascripts/active_scaffold.js.erb +++ b/app/assets/javascripts/active_scaffold.js.erb @@ -7,7 +7,7 @@ require_asset "jquery-ui" elsif Jquery.const_defined? 'Ui' jquery_ui_prefix = Jquery::Ui::Rails::VERSION < '5.0.0' ? 'jquery.ui.' : 'jquery-ui/' - jquery_ui_widgets_prefix = Jquery::Ui::Rails::VERSION >= '6.0.0' ? '/widgets/' : '' + jquery_ui_widgets_prefix = Jquery::Ui::Rails::VERSION >= '6.0.0' ? 'widgets/' : '' require_asset "#{jquery_ui_prefix}core" require_asset "#{jquery_ui_prefix}effect" require_asset "#{jquery_ui_prefix}effects/effect-highlight" if Jquery::Ui::Rails::VERSION >= '6.0.0'