Skip to content

Commit

Permalink
Merge pull request #3097 from JaHIY/fix_issue_3094
Browse files Browse the repository at this point in the history
fix error 'tried to create Proc object without a block' in Gemfile
  • Loading branch information
knu committed Mar 24, 2022
2 parents c682743 + 922cc4d commit f77b16c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Gemfile
Expand Up @@ -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

Expand Down

0 comments on commit f77b16c

Please sign in to comment.