aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/commands
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2019-01-16 21:14:21 -0500
committerRafael Mendonça França <rafaelmfranca@gmail.com>2019-01-17 16:08:34 -0500
commit553b86fc751c751db504bcbe2d033eb2bb5b6a0b (patch)
treea91d105f31ce626e216d7cc93607a68f56cd070b /railties/lib/rails/commands
parente20589c9be09c7272d73492d4b0f7b24e5595571 (diff)
downloadrails-553b86fc751c751db504bcbe2d033eb2bb5b6a0b.tar.gz
rails-553b86fc751c751db504bcbe2d033eb2bb5b6a0b.tar.bz2
rails-553b86fc751c751db504bcbe2d033eb2bb5b6a0b.zip
Remove deprecated support to old `config.ru` that use the application class as argument of `run`
Diffstat (limited to 'railties/lib/rails/commands')
-rw-r--r--railties/lib/rails/commands/server/server_command.rb13
1 files changed, 0 insertions, 13 deletions
diff --git a/railties/lib/rails/commands/server/server_command.rb b/railties/lib/rails/commands/server/server_command.rb
index 6c4cc3cb86..47c3f05bb3 100644
--- a/railties/lib/rails/commands/server/server_command.rb
+++ b/railties/lib/rails/commands/server/server_command.rb
@@ -21,19 +21,6 @@ module Rails
set_environment
end
- def app
- @app ||= begin
- app = super
- if app.is_a?(Class)
- ActiveSupport::Deprecation.warn(<<-MSG.squish)
- Using `Rails::Application` subclass to start the server is deprecated and will be removed in Rails 6.0.
- Please change `run #{app}` to `run Rails.application` in config.ru.
- MSG
- end
- app.respond_to?(:to_app) ? app.to_app : app
- end
- end
-
def opt_parser
Options.new
end