Method: Volt.current_app

Defined in:
lib/volt.rb

.current_appObject

When we use something like a Task, we don’t specify an app, so we use a thread local or global to lookup the current app. This lets us run more than one app at once, giving deference to a global app.



62
63
64
# File 'lib/volt.rb', line 62

def current_app
  Thread.current['volt_app'] || $volt_app
end