Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove useless var local definition.

  • Loading branch information...
commit 286f47f3b034db4550110b9a0f9ff48dda29e807 1 parent 33746c4
@miloops miloops authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activerecord/lib/active_record/base.rb
View
2  activerecord/lib/active_record/base.rb
@@ -1722,7 +1722,7 @@ def default_select(qualified)
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]))).
Please sign in to comment.
Something went wrong with that request. Please try again.