use #super from #method_missing instead of method aliasing
This commit is contained in:
1 parent
533ee9c16c
commit
92a9982988
2 files changed
+2
-4
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user