Skip to content
Browse files

Don't sanitize_sql where it doesn't make sense.

  • Loading branch information...
1 parent ccf5f2c commit b32474020c4ec2f2b9c78bd580466c494eac6eb3 @miloops miloops committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/lib/active_record/associations.rb
View
4 activerecord/lib/active_record/associations.rb
@@ -1695,7 +1695,7 @@ def construct_finder_arel_with_included_associations(options, join_dependency)
end
def construct_finder_sql_with_included_associations(options, join_dependency)
- sanitize_sql(construct_finder_arel_with_included_associations(options, join_dependency).to_sql)
+ construct_finder_arel_with_included_associations(options, join_dependency).to_sql
end
def construct_arel_limited_ids_condition(options, join_dependency)
@@ -1733,7 +1733,7 @@ def construct_finder_sql_for_association_limiting(options, join_dependency)
offset(construct_limit(options[:offset], scope)).
select(connection.distinct("#{connection.quote_table_name table_name}.#{primary_key}", construct_order(options[:order], scope(:find)).join(",")))
- sanitize_sql(relation.to_sql)
+ relation.to_sql
end
def tables_in_string(string)

0 comments on commit b324740

Please sign in to comment.
Something went wrong with that request. Please try again.