diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2017-01-24 23:55:04 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-24 23:55:04 -0300 |
commit | 72a869e626e2772733946483e21d65247864d856 (patch) | |
tree | 2eb73c6bab532c683adc18e232946f32b37defef /railties | |
parent | 6363fa1a6f9ef43b3e89e8cf5873617e851414d4 (diff) | |
parent | 7816bfff21876e663aab757dc0c04c442ea05827 (diff) | |
download | rails-72a869e626e2772733946483e21d65247864d856.tar.gz rails-72a869e626e2772733946483e21d65247864d856.tar.bz2 rails-72a869e626e2772733946483e21d65247864d856.zip |
Merge pull request #27772 from y-yagi/remove_unreachable_code
remove unreachable code
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/generators/rails/app/app_generator.rb | 4 | ||||
-rw-r--r-- | railties/lib/rails/generators/rails/plugin/plugin_generator.rb | 4 |
2 files changed, 0 insertions, 8 deletions
diff --git a/railties/lib/rails/generators/rails/app/app_generator.rb b/railties/lib/rails/generators/rails/app/app_generator.rb index fb2af96b45..3cf923faf0 100644 --- a/railties/lib/rails/generators/rails/app/app_generator.rb +++ b/railties/lib/rails/generators/rails/app/app_generator.rb @@ -187,10 +187,6 @@ module Rails def initialize(*args) super - unless app_path - raise Error, "Application name should be provided in arguments. For details run: rails --help" - end - if !options[:skip_active_record] && !DATABASES.include?(options[:database]) raise Error, "Invalid value for --database option. Supported for preconfiguration are: #{DATABASES.join(", ")}." end diff --git a/railties/lib/rails/generators/rails/plugin/plugin_generator.rb b/railties/lib/rails/generators/rails/plugin/plugin_generator.rb index 22604d4d9d..49259f32c8 100644 --- a/railties/lib/rails/generators/rails/plugin/plugin_generator.rb +++ b/railties/lib/rails/generators/rails/plugin/plugin_generator.rb @@ -195,10 +195,6 @@ task default: :test def initialize(*args) @dummy_path = nil super - - unless plugin_path - raise Error, "Plugin name should be provided in arguments. For details run: rails plugin new --help" - end end public_task :set_default_accessors! |