aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations.rb
diff options
context:
space:
mode:
authorEmilio Tagua <miloops@gmail.com>2010-03-23 12:56:35 -0300
committerEmilio Tagua <miloops@gmail.com>2010-03-25 15:47:06 -0300
commitfc2e25734a175641595db9612d3fb5371cb8aa2c (patch)
tree1ab07ad36a4886821de3cd93c3fa81cb9ce15659 /activerecord/lib/active_record/associations.rb
parent90a4709601873583d32c422c3a6422ef56bbc81b (diff)
downloadrails-fc2e25734a175641595db9612d3fb5371cb8aa2c.tar.gz
rails-fc2e25734a175641595db9612d3fb5371cb8aa2c.tar.bz2
rails-fc2e25734a175641595db9612d3fb5371cb8aa2c.zip
Move methods from association to relation finder methods.
Diffstat (limited to 'activerecord/lib/active_record/associations.rb')
-rwxr-xr-xactiverecord/lib/active_record/associations.rb9
1 files changed, 0 insertions, 9 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb
index a5179033f2..bff82f960c 100755
--- a/activerecord/lib/active_record/associations.rb
+++ b/activerecord/lib/active_record/associations.rb
@@ -1673,15 +1673,6 @@ module ActiveRecord
reflection
end
- def using_limitable_reflections?(reflections)
- reflections.collect(&:collection?).length.zero?
- end
-
- def column_aliases(join_dependency)
- join_dependency.joins.collect{|join| join.column_names_with_alias.collect{|column_name, aliased_name|
- "#{connection.quote_table_name join.aliased_table_name}.#{connection.quote_column_name column_name} AS #{aliased_name}"}}.flatten.join(", ")
- end
-
def add_association_callbacks(association_name, options)
callbacks = %w(before_add after_add before_remove after_remove)
callbacks.each do |callback_name|