instance method
app
Ruby on Rails 3.2.22.5
Since v3.2.22.5 Last seen in v7.1.6Signature
app(create=false)
reference the global “app” instance, created on demand. To recreate the instance, pass a non-false value as the parameter.
Parameters
-
createopt = false
Source
# File railties/lib/rails/console/app.rb, line 12
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 12
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::ConsoleMethods