1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

We are doing the same in this conditions

Signed-off-by: José Valim <jose.valim@gmail.com>
This commit is contained in:
Santiago Pastorino 2010-07-21 11:02:13 -03:00 committed by José Valim
parent 659e3b02ab
commit 79d6f314c6

View file

@ -56,9 +56,7 @@ module Rails
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