diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2010-07-21 11:37:03 -0300 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-07-21 17:17:23 +0200 |
commit | e107c208f0422b83df473666e30256f837c263eb (patch) | |
tree | ca6a09377a5e68b5c4b5ee62080c549d5c2af786 /railties/lib/rails | |
parent | 79d6f314c68a4d833a47d318b392808d530925c4 (diff) | |
download | rails-e107c208f0422b83df473666e30256f837c263eb.tar.gz rails-e107c208f0422b83df473666e30256f837c263eb.tar.bz2 rails-e107c208f0422b83df473666e30256f837c263eb.zip |
Make config.generators accept string namespaces, you can do now config.generators.test_framework 'rspec' for instance
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/configuration.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/railties/lib/rails/configuration.rb b/railties/lib/rails/configuration.rb index 74b2bcaeb1..e5af12b901 100644 --- a/railties/lib/rails/configuration.rb +++ b/railties/lib/rails/configuration.rb @@ -60,6 +60,7 @@ module Rails namespace, configuration = method, args.shift else namespace, configuration = args.shift, args.shift + namespace = namespace.to_sym if namespace.respond_to?(:to_sym) @options[:rails][method] = namespace end |