lib/maintain/maintainer.rb in maintain-0.1.1 vs lib/maintain/maintainer.rb in maintain-0.1.2
- old
+ new
@@ -142,10 +142,10 @@
def hooks
@hooks ||= {}
end
def maintainee
- Object.const_get(@maintainee)
+ @maintainee.split('::').inject(Object) {|mod, const| mod.const_get(const) }
end
def method_free?(method_name, class_method = false)
# Ugly hack so we don't fetch it 100 times for no reason
maintainee_class = maintainee
\ No newline at end of file