1
0
Эх сурвалжийг харах

Merge pull request #3097 from JaHIY/fix_issue_3094

fix error 'tried to create Proc object without a block' in Gemfile
Akinori MUSHA 3 жил өмнө
parent
commit
f77b16cb49
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 2 2
      Gemfile

+ 2 - 2
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