lib/rock_fintech/client.rb in rock_fintech-0.18.4 vs lib/rock_fintech/client.rb in rock_fintech-0.19.0

- old
+ new

@@ -30,12 +30,10 @@ end private def recursive_include_api(module_chain) - modules = eval("#{module_chain}.constants").each{ |constant| - eval("#{module_chain}::#{constant}").class.kind_of?(Module) - } + modules = eval("#{module_chain}.constants").each{ |constant| eval("#{module_chain}::#{constant}").class.kind_of?(Module) } if modules.empty? self.class.send(:include, eval(module_chain)) else modules.each{ |constant| recursive_include_api("#{module_chain}::#{constant}") }