module Rails::ConsoleMethods

def app(create = false)

instance, pass a non-false value as the parameter.
reference the global "app" instance, created on demand. To recreate the
def app(create = false)
  @app_integration_instance = nil if create
  @app_integration_instance ||= new_session do |sess|
    sess.host! "www.example.com"
  end
end