Permalink
Browse files

Remove missed usage of @first variable

With the introduction of `#second` method and friends, we added an
offsets hash which replaced the @first variable, so removing it from the
reset method to avoid creating an unused variable now.

Introduced in bc62508.
  • Loading branch information...
1 parent b8302bc commit 9322e071e48a6f2ee00de736d7630f71f4dfcb31 @carlosantoniodasilva carlosantoniodasilva committed Jan 21, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/relation.rb
@@ -496,7 +496,7 @@ def reload
end
def reset
- @first = @last = @to_sql = @order_clause = @scope_for_create = @arel = @loaded = nil
+ @last = @to_sql = @order_clause = @scope_for_create = @arel = @loaded = nil
@should_eager_load = @join_dependency = nil
@records = []
@offsets = {}

0 comments on commit 9322e07

Please sign in to comment.