lib/invokr/dependency_injection.rb in invokr-0.9.2 vs lib/invokr/dependency_injection.rb in invokr-0.9.3
- old
+ new
@@ -47,10 +47,10 @@
end
class KlassInjector < Injector
def inject
_method = Invokr.query_method method
- _method.invoke :method => :new, :with => self
+ _method.invoke :method => :new, :receiver => obj, :with => self
end
def method
obj.instance_method :initialize
end