Skip to content

Commit

Permalink
Don't sanitize_sql where it doesn't make sense.
Browse files Browse the repository at this point in the history
  • Loading branch information
miloops committed Aug 19, 2009
1 parent ccf5f2c commit b324740
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activerecord/lib/active_record/associations.rb
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit b324740

Please sign in to comment.