1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

use appropriate type for rc option

This fixes the following warning.

```
Expected boolean default value for '--rc'; got "~/.railsrc" (string)
```
This commit is contained in:
yuuji.yaginuma 2016-12-14 11:11:32 +09:00
parent a6d065e39f
commit 92dae5dfda

View file

@ -11,7 +11,7 @@ module Rails
"#{executable} new [options]"
end
class_option :rc, type: :boolean, default: File.join("~", ".railsrc"),
class_option :rc, type: :string, default: File.join("~", ".railsrc"),
desc: "Initialize the plugin command with previous defaults. Uses .railsrc in your home directory by default."
class_option :no_rc, desc: "Skip evaluating .railsrc."