diff --git a/Gemfile b/Gemfile index 1012a5e737..a840a75731 100644 --- a/Gemfile +++ b/Gemfile @@ -17,13 +17,13 @@ GemfileHelper.load_dotenv do |dotenv_dir| end # Introduces a scope for gem loading based on a condition -def if_true(condition) +def if_true(condition, &block) if condition yield else # When not including the gems, we still want our Gemfile.lock # to include them, so we scope them to an unsupported platform. - platform :ruby_18, &proc + platform :ruby_18, &block end end