Skip to content

Commit

Permalink
Load storybook after view_component has been loaded automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
mkllnk committed Sep 2, 2022
1 parent 7089bd5 commit 728eee6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@
end
end

require "view_component"
require "view_component/storybook" if Rails.env.development?

require_relative "../lib/open_food_network/i18n_config"
require_relative '../lib/spree/core/environment'
require_relative '../lib/spree/core/mail_interceptor'
Expand All @@ -35,6 +32,8 @@
# Bundler.require(:default, :assets, Rails.env)
end

require "view_component/storybook" if Rails.env.development?

module Openfoodnetwork
class Application < Rails::Application
config.middleware.insert_before(
Expand Down

0 comments on commit 728eee6

Please sign in to comment.