Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed reference to composed_of.

It was previously removed from the code, so we shouldn't mention
it in the docs
  • Loading branch information...
commit c34c1916d1d6cd6ba219aa39eb97fa2e77c4c61f 1 parent 738a0e1
Steve Klabnik steveklabnik authored
Showing with 0 additions and 3 deletions.
  1. +0 −3  activerecord/lib/active_record/sanitization.rb
3  activerecord/lib/active_record/sanitization.rb
View
@@ -54,9 +54,6 @@ def sanitize_sql_for_assignment(assignments)
# # => "`other_records`.`id` = 7"
# { :other_records => { :id => 7 } }
# # => "`other_records`.`id` = 7"
- # And for value objects on a composed_of relationship:
- # { :address => Address.new("123 abc st.", "chicago") }
- # # => "address_street='123 abc st.' and address_city='chicago'"
def sanitize_sql_hash_for_conditions(attrs, default_table_name = self.table_name)
table = Arel::Table.new(table_name).alias(default_table_name)
PredicateBuilder.build_from_hash(arel_engine, attrs, table).map { |b|
Please sign in to comment.
Something went wrong with that request. Please try again.