instance method app

Ruby on Rails 5.2.8.1

Since v3.1.12 Last seen in v5.2.8.1

Available in: v3.1.12 v3.2.22.5 v4.0.13 v4.1.16 v4.2.9 v5.2.8.1

Signature

app()

No documentation comment.

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(<<-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

Defined in railties/lib/rails/commands/server/server_command.rb line 25 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Rails::Server

Type at least 2 characters to search.

↑↓ navigate · open · esc close