提交 79d6f314 编写于 作者: S Santiago Pastorino 提交者: José Valim

We are doing the same in this conditions

Signed-off-by: NJosé Valim <jose.valim@gmail.com>
上级 659e3b02
......@@ -56,9 +56,7 @@ def method_missing(method, *args)
return @options[method] if args.empty?
if method == :rails
namespace, configuration = :rails, args.shift
elsif args.first.is_a?(Hash)
if method == :rails || args.first.is_a?(Hash)
namespace, configuration = method, args.shift
else
namespace, configuration = args.shift, args.shift
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册