From f48027c79ca88559890e4c5dbd4f7a95ba575fa6 Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Mon, 27 Jan 2020 16:11:37 +0100 Subject: [PATCH] Turn regex asset path into globbing pattern Rails 6 seems to not like regexes anymore, making it necessary to use a globbing patter instead. --- lib/bootstrap-editable-rails.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bootstrap-editable-rails.rb b/lib/bootstrap-editable-rails.rb index 60211aa..761e1d1 100644 --- a/lib/bootstrap-editable-rails.rb +++ b/lib/bootstrap-editable-rails.rb @@ -9,7 +9,7 @@ class Engine < ::Rails::Engine ::ActiveSupport.on_load(:action_view) do ::ActionView::Base.send :include, Bootstrap::Editable::Rails::ViewHelper end - app.config.assets.precompile << %r(bootstrap-editable/.*\.(?:png|gif)$) + app.config.assets.precompile << "bootstrap-editable/**/*.{gif,png}" end end end