mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Call to_sql method on ActiveRecord::Relation instance not it's relation
attribute.'
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user