rails/railties/lib
Ryunosuke Sato 78e0e183c5
Fix to handle missing yarn environment in bin/yarn
When we use `bin/yarn` without original yarn,
the following error will be occurred:
```
bin/yarn:12:in `initialize': no implicit conversion of nil into String (TypeError)
```

This means `executable_path` is `nil`.

To handle missing yarn correctly, checking `executable_path` seems good.
This is a result of my local without yarn.
```
Yarn executable was not detected in the system.
Download Yarn at https://yarnpkg.com/en/docs/install
rake aborted!
```

This commit follows up https://github.com/rails/rails/pull/40646.
2020-12-03 22:27:43 +09:00
..
minitest Fix backtraces for generated plugin tests 2020-10-07 15:40:56 -05:00
rails Fix to handle missing yarn environment in bin/yarn 2020-12-03 22:27:43 +09:00
rails.rb Use optimized subclass of StringInquirer for Rails.env 2020-03-05 14:57:27 -06:00