method

app

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: Rails::Server

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v5.2.3) is shown here.

These similar methods exist in v7.1.3.2:

app() public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File railties/lib/rails/commands/server/server_command.rb, line 25
    def app
      @app ||= begin
        app = super
        if app.is_a?(Class)
          ActiveSupport::Deprecation.warn(            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..squish)
        end
        app.respond_to?(:to_app) ? app.to_app : app
      end
    end
Register or log in to add new notes.