diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-05-17 12:03:47 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-05-17 12:03:47 -0700 |
commit | ff22fe4e9f22f92da526a1e5da2ef6b26efbc730 (patch) | |
tree | ccc63449f2260e6b75fe14fc762a900383441475 /activerecord | |
parent | f796ed6088ab1e347fcfe573a6346d1235453156 (diff) | |
download | rails-ff22fe4e9f22f92da526a1e5da2ef6b26efbc730.tar.gz rails-ff22fe4e9f22f92da526a1e5da2ef6b26efbc730.tar.bz2 rails-ff22fe4e9f22f92da526a1e5da2ef6b26efbc730.zip |
just a test
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/statement_cache.rb | 8 |
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 |