aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2011-01-24 20:04:00 +0000
committerJon Leighton <j@jonathanleighton.com>2011-01-30 11:56:41 +0000
commitd392c67d2c614644d678627e6cd0124878982fc7 (patch)
treebdb1b52218fea23007b686c9b39de3a4d996e0aa /activerecord/lib
parentdbb6fa723e5b1582d6508e9846d81cf42a797e19 (diff)
downloadrails-d392c67d2c614644d678627e6cd0124878982fc7.tar.gz
rails-d392c67d2c614644d678627e6cd0124878982fc7.tar.bz2
rails-d392c67d2c614644d678627e6cd0124878982fc7.zip
Remove unused methods conditions, sql_conditions and sanitize_sql
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/associations/association_proxy.rb12
1 files changed, 0 insertions, 12 deletions
diff --git a/activerecord/lib/active_record/associations/association_proxy.rb b/activerecord/lib/active_record/associations/association_proxy.rb
index e7c9bbd192..59b0c54f2f 100644
--- a/activerecord/lib/active_record/associations/association_proxy.rb
+++ b/activerecord/lib/active_record/associations/association_proxy.rb
@@ -108,13 +108,6 @@ module ActiveRecord
@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 @@ module ActiveRecord
@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