aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/statement_cache.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2013-05-17 12:03:47 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2013-05-17 12:03:47 -0700
commitff22fe4e9f22f92da526a1e5da2ef6b26efbc730 (patch)
treeccc63449f2260e6b75fe14fc762a900383441475 /activerecord/lib/active_record/statement_cache.rb
parentf796ed6088ab1e347fcfe573a6346d1235453156 (diff)
downloadrails-ff22fe4e9f22f92da526a1e5da2ef6b26efbc730.tar.gz
rails-ff22fe4e9f22f92da526a1e5da2ef6b26efbc730.tar.bz2
rails-ff22fe4e9f22f92da526a1e5da2ef6b26efbc730.zip
just a test
Diffstat (limited to 'activerecord/lib/active_record/statement_cache.rb')
-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