aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel
diff options
context:
space:
mode:
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