Rails::ConsoleMethods
module Rails::ConsoleMethods
Public Instance Methods
reference the global “app” instance, created on demand. To recreate the instance, pass a non-false value as the parameter.
# File railties/lib/rails/console/app.rb, line 8 def app(create=false) @app_integration_instance = nil if create @app_integration_instance ||= new_session do |sess| sess.host! "www.example.com" end end