diff options
author | Prathamesh Sonpatki <csonpatki@gmail.com> | 2015-12-25 11:09:39 +0530 |
---|---|---|
committer | Prathamesh Sonpatki <csonpatki@gmail.com> | 2015-12-25 11:09:39 +0530 |
commit | 35551f85c728b09a9173d4c18a8ba7911e5f6795 (patch) | |
tree | 86a6d01fff698176a53e639d807c9ce01f98263a /railties/lib/rails/generators | |
parent | f037e4ac89d538cdca65d2beecfa3710503fbe13 (diff) | |
download | rails-35551f85c728b09a9173d4c18a8ba7911e5f6795.tar.gz rails-35551f85c728b09a9173d4c18a8ba7911e5f6795.tar.bz2 rails-35551f85c728b09a9173d4c18a8ba7911e5f6795.zip |
Changed default value of `:rc` option to `nil`
- This fixes an error thrown by Thor because type of default value of
`:rc` option which is `:boolean` does not match with it's default type
which is `string`.
- Ref - https://github.com/erikhuda/thor/blob/master/lib/thor/parser/option.rb#L125
Diffstat (limited to 'railties/lib/rails/generators')
-rw-r--r-- | railties/lib/rails/generators/app_base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/app_base.rb b/railties/lib/rails/generators/app_base.rb index 2f18619e30..064b109a6f 100644 --- a/railties/lib/rails/generators/app_base.rb +++ b/railties/lib/rails/generators/app_base.rb @@ -75,7 +75,7 @@ module Rails class_option :edge, type: :boolean, default: false, desc: "Setup the #{name} with Gemfile pointing to Rails repository" - class_option :rc, type: :string, default: false, + class_option :rc, type: :string, default: nil, desc: "Path to file containing extra configuration options for rails command" class_option :no_rc, type: :boolean, default: false, |