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)