refactoring Dspace::Client#method_missing

parent add5ff89
......@@ -26,11 +26,7 @@ module Dspace
end
def method_missing(name, *args, &block)
if self.class.resources.keys.include?(name)
resource(name)
else
super
end
resource(name) || super
end
def resources
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment