From c33c991eabd628b172bc219de1bf25fd75e93c93 Mon Sep 17 00:00:00 2001 From: Arun Agrawal Date: Sat, 10 Nov 2012 17:34:39 +0530 Subject: Removing warning : assigned but unused variable --- railties/lib/rails/commands/dbconsole.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties/lib/rails/commands/dbconsole.rb') 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 -- cgit v1.2.3