From 5f1c7cb0de1a311ccd7168d785f6bd8453377f14 Mon Sep 17 00:00:00 2001 From: rohit Date: Sun, 8 Aug 2010 10:36:54 +0530 Subject: [PATCH] Give the splat argument a name as it's used in the method. [#5331 state:open] --- .../connection_adapters/abstract/query_cache.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb b/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb index 78fffaf..1b37ce3 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb @@ -57,7 +57,7 @@ module ActiveRecord end end - def columns(*) + def columns(*args) if @query_cache_enabled @query_cache["SHOW FIELDS FROM #{args.first}"] ||= super else -- 1.7.0.4