aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
authorArun Agrawal <arunagw@gmail.com>2012-11-10 17:34:39 +0530
committerArun Agrawal <arunagw@gmail.com>2012-11-10 17:34:39 +0530
commitc33c991eabd628b172bc219de1bf25fd75e93c93 (patch)
tree4d6b309baee25c320902abddbaf28c145bd9f145 /railties/lib
parent90a1721c3171bce08b20b9ce4765ba9eeea725cd (diff)
downloadrails-c33c991eabd628b172bc219de1bf25fd75e93c93.tar.gz
rails-c33c991eabd628b172bc219de1bf25fd75e93c93.tar.bz2
rails-c33c991eabd628b172bc219de1bf25fd75e93c93.zip
Removing warning : assigned but unused variable
Diffstat (limited to 'railties/lib')
-rw-r--r--railties/lib/rails/commands/dbconsole.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/commands/dbconsole.rb b/railties/lib/rails/commands/dbconsole.rb
index c84fa832f5..90359d1c08 100644
--- a/railties/lib/rails/commands/dbconsole.rb
+++ b/railties/lib/rails/commands/dbconsole.rb
@@ -154,7 +154,7 @@ module Rails
full_path_command = nil
found = commands.detect do |cmd|
- dir = dirs_on_path.detect do |path|
+ dirs_on_path.detect do |path|
full_path_command = File.join(path, cmd)
File.executable? full_path_command
end