File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
railties/lib/rails/generators Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -661,7 +661,7 @@ def depends_on_system_test?
661
661
end
662
662
663
663
def depend_on_bootsnap?
664
- !options [ :skip_bootsnap ] && !options [ :dev ] && !defined? ( JRUBY_VERSION )
664
+ !options [ :skip_bootsnap ] && !options [ :dev ] && !jruby?
665
665
end
666
666
667
667
def target_rails_prerelease ( self_command = "new" )
@@ -737,7 +737,7 @@ def run_solid
737
737
end
738
738
739
739
def add_bundler_platforms
740
- if bundle_install?
740
+ if bundle_install? && ! jruby?
741
741
# The vast majority of Rails apps will be deployed on `x86_64-linux`.
742
742
bundle_command ( "lock --add-platform=x86_64-linux" )
743
743
@@ -746,6 +746,10 @@ def add_bundler_platforms
746
746
end
747
747
end
748
748
749
+ def jruby?
750
+ defined? ( JRUBY_VERSION )
751
+ end
752
+
749
753
def empty_directory_with_keep_file ( destination , config = { } )
750
754
empty_directory ( destination , config )
751
755
keep_file ( destination )
You can’t perform that action at this time.
0 commit comments