instance method app

Ruby on Rails 3.1.12

Since v2.2.3 Last seen in v3.1.12

Available in: v2.2.3 v2.3.18 v3.0.20 v3.1.12

Signature

app(create=false)

reference the global “app” instance, created on demand. To recreate the instance, pass a non-false value as the parameter.

Parameters

create opt = false
Source
# File railties/lib/rails/console/app.rb, line 10
def app(create=false)
  @app_integration_instance = nil if create
  @app_integration_instance ||= new_session do |sess|
    sess.host! "www.example.com"
  end
end

Defined in railties/lib/rails/console/app.rb line 10 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Object

Type at least 2 characters to search.

↑↓ navigate · open · esc close