Skip to content

Commit 1428ef9

Browse files
authored
Merge pull request rails#51572 from Bodacious/patch-1
Wrap YJIT guard clause in parentheses
2 parents aef3358 + c325216 commit 1428ef9

File tree

1 file changed

+1
-1
lines changed
  • railties/lib/rails/generators/rails/app/templates/config/initializers

1 file changed

+1
-1
lines changed

railties/lib/rails/generators/rails/app/templates/config/initializers/enable_yjit.rb.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# If you are deploying to a memory constrained environment
55
# you may want to delete this file, but otherwise it's free
66
# performance.
7-
if defined? RubyVM::YJIT.enable
7+
if defined?(RubyVM::YJIT.enable)
88
Rails.application.config.after_initialize do
99
RubyVM::YJIT.enable
1010
end

0 commit comments

Comments
 (0)