aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/base.rb
diff options
context:
space:
mode:
authorEmilio Tagua <miloops@gmail.com>2009-08-26 16:19:19 -0300
committerEmilio Tagua <miloops@gmail.com>2009-08-26 16:19:19 -0300
commit286f47f3b034db4550110b9a0f9ff48dda29e807 (patch)
tree952f191495f4a6b8b56050a25de4ba2c750fb458 /activerecord/lib/active_record/base.rb
parent33746c44cb3ace58507d5edc9833088524821d22 (diff)
downloadrails-286f47f3b034db4550110b9a0f9ff48dda29e807.tar.gz
rails-286f47f3b034db4550110b9a0f9ff48dda29e807.tar.bz2
rails-286f47f3b034db4550110b9a0f9ff48dda29e807.zip
Remove useless var local definition.
Diffstat (limited to 'activerecord/lib/active_record/base.rb')
-rwxr-xr-xactiverecord/lib/active_record/base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb
index b0286f7409..8217f5e8e9 100755
--- a/activerecord/lib/active_record/base.rb
+++ b/activerecord/lib/active_record/base.rb
@@ -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]))).