lib/async/app/injector.rb in async-tools-0.2.9 vs lib/async/app/injector.rb in async-tools-0.2.10
- old
+ new
@@ -1,10 +1,10 @@
# frozen_string_literal: true
module Async::App::Injector
def inject(name)
define_method(name) do
- $__ASYNC_APP.container[name] # rubocop:disable Style/GlobalVars
+ Async::App.instance.container[name]
end
private name
end
end