mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Remove useless var local definition.
This commit is contained in:
@@ -1722,7 +1722,7 @@ module ActiveRecord #:nodoc:
|
||||
|
||||
def construct_finder_arel(options = {}, scope = scope(:find))
|
||||
# TODO add lock to Arel
|
||||
relation = arel_table(options[:from]).
|
||||
arel_table(options[:from]).
|
||||
joins(construct_join(options[:joins], scope)).
|
||||
conditions(construct_conditions(options[:conditions], scope)).
|
||||
select(options[:select] || (scope && scope[:select]) || default_select(options[:joins] || (scope && scope[:joins]))).
|
||||
|
||||
Reference in New Issue
Block a user