use #super from #method_missing instead of method aliasing

This commit is contained in:
josh committed 2014-03-26 11:23:32 -04:00
1 parent 533ee9c16c
commit 92a9982988
2 files changed
+2 -4

No files matched your search

+1 -2
View File
@@ -246,7 +246,6 @@ module Rscons
end
end
alias_method :orig_method_missing, :method_missing
def method_missing(method, *args)
if @builders.has_key?(method.to_s)
target, source, vars, *rest = args
@@ -261,7 +260,7 @@ module Rscons
args: rest,
}
else
orig_method_missing(method, *args)
super
end
end