Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove unused methods conditions, sql_conditions and sanitize_sql

  • Loading branch information...
commit d392c67d2c614644d678627e6cd0124878982fc7 1 parent dbb6fa7
@jonleighton jonleighton authored
Showing with 0 additions and 12 deletions.
  1. +0 −12 activerecord/lib/active_record/associations/association_proxy.rb
View
12 activerecord/lib/active_record/associations/association_proxy.rb
@@ -108,13 +108,6 @@ def aliased_table_name
@reflection.klass.table_name
end
- # Returns the SQL string that corresponds to the <tt>:conditions</tt>
- # option of the macro, if given, or +nil+ otherwise.
- def conditions
- @conditions ||= interpolate_sql(@reflection.sanitized_conditions) if @reflection.sanitized_conditions
- end
- alias :sql_conditions :conditions
-
# Resets the \loaded flag to +false+ and sets the \target to +nil+.
def reset
@loaded = false
@@ -249,11 +242,6 @@ def interpolate_sql(sql, record = nil)
@owner.send(:interpolate_sql, sql, record)
end
- # Forwards the call to the reflection class.
- def sanitize_sql(sql, table_name = @reflection.klass.table_name)
- @reflection.klass.send(:sanitize_sql, sql, table_name)
- end
-
def select_value
@reflection.options[:select]
end
Please sign in to comment.
Something went wrong with that request. Please try again.