aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmilio Tagua <miloops@gmail.com>2009-08-18 19:38:03 -0300
committerEmilio Tagua <miloops@gmail.com>2009-08-18 19:38:03 -0300
commit0abba2813be52cc8f8ff2544f8a3b18b5083be53 (patch)
treee8ca73d7dff3cab55e38f41d421df4bcbffb7f72
parent74ed123e082a9b2b160ddecc2eb141f1678c600a (diff)
downloadrails-0abba2813be52cc8f8ff2544f8a3b18b5083be53.tar.gz
rails-0abba2813be52cc8f8ff2544f8a3b18b5083be53.tar.bz2
rails-0abba2813be52cc8f8ff2544f8a3b18b5083be53.zip
Call to_sql method on ActiveRecord::Relation instance not it's relation
attribute.'
-rwxr-xr-xactiverecord/lib/active_record/base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb
index c74d8c6190..4636a8b338 100755
--- a/activerecord/lib/active_record/base.rb
+++ b/activerecord/lib/active_record/base.rb
@@ -1733,7 +1733,7 @@ module ActiveRecord #:nodoc:
end
def construct_finder_sql(options, scope = scope(:find))
- construct_finder_arel(options, scope).relation.to_sql
+ construct_finder_arel(options, scope).to_sql
end
def construct_join(joins, scope)