aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-11-30 16:57:55 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2010-11-30 16:57:55 -0800
commit288eefd4b13fe5177782049e58445c15d5e02708 (patch)
treeebd688bab72508b8af62b9f731486a9bcb83f647 /lib/arel
parent624280171cb1e82ddfd5525a6d677a60693190b3 (diff)
downloadrails-288eefd4b13fe5177782049e58445c15d5e02708.tar.gz
rails-288eefd4b13fe5177782049e58445c15d5e02708.tar.bz2
rails-288eefd4b13fe5177782049e58445c15d5e02708.zip
deprecating the "joins" method
Diffstat (limited to 'lib/arel')
-rw-r--r--lib/arel/select_manager.rb4
-rw-r--r--lib/arel/table.rb4
2 files changed, 8 insertions, 0 deletions
diff --git a/lib/arel/select_manager.rb b/lib/arel/select_manager.rb
index f6738bf26f..08cfd41e7f 100644
--- a/lib/arel/select_manager.rb
+++ b/lib/arel/select_manager.rb
@@ -154,6 +154,10 @@ module Arel
end
def joins manager
+ if $VERBOSE
+ warn "joins is deprecated and will be removed in 2.2"
+ warn "please remove your call to joins from #{caller.first}"
+ end
manager.join_sql
end
diff --git a/lib/arel/table.rb b/lib/arel/table.rb
index 6f29a02e56..aa23a7d601 100644
--- a/lib/arel/table.rb
+++ b/lib/arel/table.rb
@@ -45,6 +45,10 @@ module Arel
end
def joins manager
+ if $VERBOSE
+ warn "joins is deprecated and will be removed in 2.2"
+ warn "please remove your call to joins from #{caller.first}"
+ end
nil
end