aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/statement_cache.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/activerecord/lib/active_record/statement_cache.rb b/activerecord/lib/active_record/statement_cache.rb
index 3fadc38543..dd4ee0c4a0 100644
--- a/activerecord/lib/active_record/statement_cache.rb
+++ b/activerecord/lib/active_record/statement_cache.rb
@@ -19,12 +19,8 @@ module ActiveRecord
raise ArgumentError.new("Statement cannot be nil") if @relation.nil?
end
- def execute(binds = nil)
- rel = @relation.dup
- if (binds != nil)
- rel.replace_binds binds
- end
- rel.to_a
+ def execute
+ @relation.dup.to_a
end
end
end