diff --git a/bridgetown-core/lib/bridgetown-core/plugin_manager.rb b/bridgetown-core/lib/bridgetown-core/plugin_manager.rb index b5d9b31c4..6b4493ddb 100644 --- a/bridgetown-core/lib/bridgetown-core/plugin_manager.rb +++ b/bridgetown-core/lib/bridgetown-core/plugin_manager.rb @@ -44,8 +44,7 @@ def self.require_from_bundler if !ENV["BRIDGETOWN_NO_BUNDLER_REQUIRE"] && File.file?("Gemfile") require "bundler" - required_gems = Bundler.require PLUGINS_GROUP - required_gems.select! do |dep| + required_gems = Bundler.require(PLUGINS_GROUP).select do |dep| (dep.groups & [PLUGINS_GROUP]).any? && dep.should_include? end