diff options
author | Alexey Gaziev <alex.gaziev@gmail.com> | 2011-06-20 17:22:09 +0400 |
---|---|---|
committer | Alexey Gaziev <alex.gaziev@gmail.com> | 2011-06-20 17:22:09 +0400 |
commit | 87329ef67f9502aca5a9331610dc97b795cfda94 (patch) | |
tree | 7207c5bacb7a2288909d535c486c4527638f71fd /railties/lib/rails/generators/actions.rb | |
parent | 93b7da478b81c93afd9410a506e5d37ad607b900 (diff) | |
download | rails-87329ef67f9502aca5a9331610dc97b795cfda94.tar.gz rails-87329ef67f9502aca5a9331610dc97b795cfda94.tar.bz2 rails-87329ef67f9502aca5a9331610dc97b795cfda94.zip |
Removed warnings about shadowing variables
Diffstat (limited to 'railties/lib/rails/generators/actions.rb')
-rw-r--r-- | railties/lib/rails/generators/actions.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/railties/lib/rails/generators/actions.rb b/railties/lib/rails/generators/actions.rb index d31a3262e3..433a56dc57 100644 --- a/railties/lib/rails/generators/actions.rb +++ b/railties/lib/rails/generators/actions.rb @@ -114,11 +114,11 @@ module Rails # git :add => "this.file that.rb" # git :add => "onefile.rb", :rm => "badfile.cxx" # - def git(command={}) - if command.is_a?(Symbol) - run "git #{command}" + def git(commands={}) + if commands.is_a?(Symbol) + run "git #{commands}" else - command.each do |command, options| + commands.each do |command, options| run "git #{command} #{options}" end end |