lib/lookbook/engine.rb in lookbook-3.0.0.alpha.1 vs lib/lookbook/engine.rb in lookbook-3.0.0.alpha.2

- old
+ new

@@ -11,10 +11,10 @@ config.before_initialize do |app| YARD::Parser::Ruby::RipperParser.prepend YardParserPatch end config.to_prepare do - ViewComponentConfigSync.call if Gem.loaded_specs.has_key?("view_component") + ViewComponentConfigSync.call if Utils.gem_installed?("view_component") preview_controller = Lookbook.config.preview_controller.constantize unless preview_controller.include?(Lookbook::PreviewControllerActions) preview_controller.include(Lookbook::PreviewControllerActions) end