method
bin_when_updating
v5.1.7 -
Show latest stable
- Class:
Rails::AppBuilder
bin_when_updating()public
No documentation available.
# File railties/lib/rails/generators/rails/app/app_generator.rb, line 87
def bin_when_updating
bin_yarn_exist = File.exist?("bin/yarn")
bin
if options[:api] && !bin_yarn_exist
remove_file "bin/yarn"
end
end