Permalink
Browse files

deprecating the "joins" method

  • Loading branch information...
1 parent 6242801 commit 288eefd4b13fe5177782049e58445c15d5e02708 @tenderlove tenderlove committed Dec 1, 2010
Showing with 8 additions and 0 deletions.
  1. +4 −0 lib/arel/select_manager.rb
  2. +4 −0 lib/arel/table.rb
@@ -154,6 +154,10 @@ def order_clauses
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
View
@@ -45,6 +45,10 @@ def from table
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

0 comments on commit 288eefd

Please sign in to comment.