From d55a43d4b15c81334f9549633dd3ce39cefc3bf9 Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Mon, 29 Aug 2022 14:57:14 +1000 Subject: [PATCH] Avoid storybook deprecation warning Loading the engine directly is deprecated and I followed the current documentation to load storybook in the app. This avoids a warning: > DEPRECATION WARNING: This manually engine loading is deprecated and will be removed in v1.0.0. Remove `require "view_component/storybook/engine"`. (called from at config/application.rb:30) --- Gemfile | 2 +- config/application.rb | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index a9ac159bb0..e626686778 100644 --- a/Gemfile +++ b/Gemfile @@ -178,7 +178,7 @@ group :development do gem 'spring-commands-rspec' gem 'web-console' - gem "view_component_storybook", require: "view_component/storybook/engine" + gem "view_component_storybook" gem 'rack-mini-profiler', '< 3.0.0' end diff --git a/config/application.rb b/config/application.rb index c7fc66d559..e92fae3a11 100644 --- a/config/application.rb +++ b/config/application.rb @@ -20,6 +20,9 @@ require "rails" end end +require "view_component" +require "view_component/storybook" + require_relative "../lib/open_food_network/i18n_config" require_relative '../lib/spree/core/environment' require_relative '../lib/spree/core/mail_interceptor'