diff options
author | José Valim <jose.valim@gmail.com> | 2009-07-03 15:12:18 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-07-03 15:12:18 +0200 |
commit | 44633dc7a587424d21917413500b2d71fa3d31bb (patch) | |
tree | 75601c36883e3ea050882e6cb7f241c0d37f2637 /railties/lib/generators.rb | |
parent | 21db04818e0120a35912cbf57663dfecc9bec4a3 (diff) | |
download | rails-44633dc7a587424d21917413500b2d71fa3d31bb.tar.gz rails-44633dc7a587424d21917413500b2d71fa3d31bb.tar.bz2 rails-44633dc7a587424d21917413500b2d71fa3d31bb.zip |
Add some tests for no_color! behavior.
Diffstat (limited to 'railties/lib/generators.rb')
-rw-r--r-- | railties/lib/generators.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/generators.rb b/railties/lib/generators.rb index a923a33397..d513a3f6c7 100644 --- a/railties/lib/generators.rb +++ b/railties/lib/generators.rb @@ -123,10 +123,10 @@ module Rails # It's used as the default entry point for generate, destroy and update # commands. # - def self.invoke(namespace, args=ARGV, behavior=:invoke) + def self.invoke(namespace, args=ARGV, config={}) if klass = find_by_namespace(namespace, "rails") args << "--help" if klass.arguments.any? { |a| a.required? } && args.empty? - klass.start args, :behavior => behavior + klass.start args, config else puts "Could not find generator #{namespace}." end |