Flowdock
method

instance

Importance_0
Ruby on Rails latest stable (v4.1.8) - 0 notes - Class: Rails::Application

Method deprecated or moved

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

These similar methods exist in v4.1.8:

instance() 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/application.rb, line 50
      def instance
        if self == Rails::Application
          if Rails.application
            ActiveSupport::Deprecation.warn "Calling a method in Rails::Application is deprecated, " <<
              "please call it directly in your application constant #{Rails.application.class.name}.", caller
          end
          Rails.application
        else
          @@instance ||= new
        end
      end
Register or log in to add new notes.