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

- old
+ new

@@ -30,10 +30,12 @@ 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}") }