diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-05-17 13:18:02 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-05-17 13:18:02 -0700 |
commit | c0cdd2e95902f8cb38bbae274709ed4541da84c2 (patch) | |
tree | 976cdb24e2d3270aea417f814ef1a8ed9be441f3 /activerecord | |
parent | ff22fe4e9f22f92da526a1e5da2ef6b26efbc730 (diff) | |
download | rails-c0cdd2e95902f8cb38bbae274709ed4541da84c2.tar.gz rails-c0cdd2e95902f8cb38bbae274709ed4541da84c2.tar.bz2 rails-c0cdd2e95902f8cb38bbae274709ed4541da84c2.zip |
more testing
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/relation.rb | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/activerecord/lib/active_record/relation.rb b/activerecord/lib/active_record/relation.rb index 13fab1d9f1..9dbbf43281 100644 --- a/activerecord/lib/active_record/relation.rb +++ b/activerecord/lib/active_record/relation.rb @@ -203,7 +203,7 @@ module ActiveRecord # {Active Record Query Interface guide}[http://guides.rubyonrails.org/active_record_querying.html#running-explain]. def explain #TODO: Fix for binds. - #exec_explain(collecting_queries_for_explain { exec_queries }) + exec_explain(collecting_queries_for_explain { exec_queries }) end # Converts relation objects to Array. @@ -567,19 +567,6 @@ module ActiveRecord "#<#{self.class.name} [#{entries.join(', ')}]>" end - def replace_binds(bind_values) - temp_binds = [] - bind_values.map do |column, value| - case value - when String, Integer - if @klass.column_names.include? column.to_s - temp_binds.push([@klass.columns_hash[column.to_s], value]) - end - end - end - self.bind_values = temp_binds - end - private def exec_queries |