diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-02-18 16:42:48 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-02-24 17:45:15 +0900 |
commit | 35a7a292645ee895e522769f657491e42d2a793a (patch) | |
tree | e8059c369f407808634c6c0fafe3f58ad36ef1dc /railties/test/application/version_test.rb | |
parent | 6dccceef9c888e7e8a2cdcd46cd896eff75d64d9 (diff) | |
download | rails-35a7a292645ee895e522769f657491e42d2a793a.tar.gz rails-35a7a292645ee895e522769f657491e42d2a793a.tar.bz2 rails-35a7a292645ee895e522769f657491e42d2a793a.zip |
Make adding gemfile entry work even if specify only the plugin name
Whether the command was executed within the rails application is checked
by whether or not the application's path matches `app_path`.
https://github.com/rails/rails/blob/5-0-stable/railties/lib/rails/generators/rails/plugin/plugin_generator.rb#L439..L441
Therefore, if only plugin name is specified in `app_path`, addition to
Gemfile is not done.
However, in the rails guide an example of specifying only plugin name
is given, and it is considered that there are many cases where only
plugin name is specified.
For that reason, made it work even if only plugin name was specified.
Diffstat (limited to 'railties/test/application/version_test.rb')
0 files changed, 0 insertions, 0 deletions