instance method
bin_when_updating
Ruby on Rails 5.2.8.1
Since v5.2.8.1Signature
bin_when_updating()
No documentation comment.
Source
# File railties/lib/rails/generators/rails/app/app_generator.rb, line 97
def bin_when_updating
bin_yarn_exist = File.exist?("bin/yarn")
bin
if options[:api] && !bin_yarn_exist
remove_file "bin/yarn"
end
end
Defined in railties/lib/rails/generators/rails/app/app_generator.rb line 97
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::AppBuilder