Permalink
Browse files

We are doing the same in this conditions

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
1 parent 659e3b0 commit 79d6f314c68a4d833a47d318b392808d530925c4 @spastorino spastorino committed with josevalim Jul 21, 2010
Showing with 1 addition and 3 deletions.
  1. +1 −3 railties/lib/rails/configuration.rb
@@ -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

0 comments on commit 79d6f31

Please sign in to comment.