Permalink
Browse files

Remove stale construct_* methods

  • Loading branch information...
lifo committed Jan 15, 2010
1 parent 951e485 commit 21ce8eac9b9bd8e14e3396caf2e30751889e26cb
Showing with 0 additions and 24 deletions.
  1. +0 −24 activerecord/lib/active_record/base.rb
@@ -1609,30 +1609,6 @@ def construct_join(joins, scope)
end
end
- def construct_order(order, scope)
- orders = []
-
- scoped_order = scope[:order] if scope
- if order
- orders << order
- orders << scoped_order if scoped_order && scoped_order != order
- elsif scoped_order
- orders << scoped_order
- end
-
- orders.reject {|o| o.blank?}
- end
-
- def construct_limit(limit, scope)
- limit ||= scope[:limit] if scope
- limit
- end
-
- def construct_offset(offset, scope)
- offset ||= scope[:offset] if scope
- offset
- end
-
# Merges includes so that the result is a valid +include+
def merge_includes(first, second)
(Array.wrap(first) + Array.wrap(second)).uniq

0 comments on commit 21ce8ea

Please sign in to comment.