aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2010-06-12 11:54:52 +0530
committerPratik Naik <pratiknaik@gmail.com>2010-06-12 11:54:52 +0530
commit9a23a0350502c7b3c94cb9ee761dea3bc08c6271 (patch)
treeea212866464a2a973d40e3db4849bbc73153d2d3 /activerecord
parentbe43ad69afefbe9bbf8e8677f2e35d4a908ca085 (diff)
downloadrails-9a23a0350502c7b3c94cb9ee761dea3bc08c6271.tar.gz
rails-9a23a0350502c7b3c94cb9ee761dea3bc08c6271.tar.bz2
rails-9a23a0350502c7b3c94cb9ee761dea3bc08c6271.zip
Remove an unused method
Diffstat (limited to 'activerecord')
-rwxr-xr-xactiverecord/lib/active_record/base.rb13
1 files changed, 0 insertions, 13 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb
index 7cff6d9f1a..63ab6efae2 100755
--- a/activerecord/lib/active_record/base.rb
+++ b/activerecord/lib/active_record/base.rb
@@ -1068,19 +1068,6 @@ module ActiveRecord #:nodoc:
attribute_names.all? { |name| column_methods_hash.include?(name.to_sym) }
end
- def attribute_condition(quoted_column_name, argument)
- case argument
- when nil then "#{quoted_column_name} IS ?"
- when Array, ActiveRecord::Associations::AssociationCollection, ActiveRecord::NamedScope::Scope then "#{quoted_column_name} IN (?)"
- when Range then if argument.exclude_end?
- "#{quoted_column_name} >= ? AND #{quoted_column_name} < ?"
- else
- "#{quoted_column_name} BETWEEN ? AND ?"
- end
- else "#{quoted_column_name} = ?"
- end
- end
-
protected
# Scope parameters to method calls within the block. Takes a hash of method_name => parameters hash.
# method_name may be <tt>:find</tt> or <tt>:create</tt>. <tt>:find</tt> parameter is <tt>Relation</tt> while