diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2016-12-14 11:11:32 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2016-12-14 11:12:13 +0900 |
commit | 92dae5dfda9b72e748bb00f38603e8fda403089a (patch) | |
tree | 171afb3ad96689faf8d8e8b146ec03a61e86e299 /railties/lib/rails/commands/plugin | |
parent | a6d065e39f9285119d75a05ee46c659f8b3c0db8 (diff) | |
download | rails-92dae5dfda9b72e748bb00f38603e8fda403089a.tar.gz rails-92dae5dfda9b72e748bb00f38603e8fda403089a.tar.bz2 rails-92dae5dfda9b72e748bb00f38603e8fda403089a.zip |
use appropriate type for `rc` option
This fixes the following warning.
```
Expected boolean default value for '--rc'; got "~/.railsrc" (string)
```
Diffstat (limited to 'railties/lib/rails/commands/plugin')
-rw-r--r-- | railties/lib/rails/commands/plugin/plugin_command.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/commands/plugin/plugin_command.rb b/railties/lib/rails/commands/plugin/plugin_command.rb index 16587ce067..b40ab006af 100644 --- a/railties/lib/rails/commands/plugin/plugin_command.rb +++ b/railties/lib/rails/commands/plugin/plugin_command.rb @@ -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." |