diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2014-01-21 09:46:01 -0200 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2014-01-21 09:46:02 -0200 |
commit | 9322e071e48a6f2ee00de736d7630f71f4dfcb31 (patch) | |
tree | edeee5377ab39f43c2b9405885256e5e81be2074 /activerecord | |
parent | b8302bcfdaec2a9e7658262d6feeb535c572922d (diff) | |
download | rails-9322e071e48a6f2ee00de736d7630f71f4dfcb31.tar.gz rails-9322e071e48a6f2ee00de736d7630f71f4dfcb31.tar.bz2 rails-9322e071e48a6f2ee00de736d7630f71f4dfcb31.zip |
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 bc625080308e4853ae3036f2ad74fe3826e463ef.
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/relation.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/relation.rb b/activerecord/lib/active_record/relation.rb index 0fc63343ab..17af887abc 100644 --- a/activerecord/lib/active_record/relation.rb +++ b/activerecord/lib/active_record/relation.rb @@ -496,7 +496,7 @@ module ActiveRecord 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 = {} |