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:
parent
659e3b02ab
commit
79d6f314c6
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue