Permalink
Browse files

Merge pull request #29809 from kamipo/remove_unused_ivars

Remove unused `@last`, `@order_clause`, and `@join_dependency`
  • Loading branch information...
kaspth committed Jul 16, 2017
2 parents f3d67e6 + 555b383 commit 16f2b2044eaaa54b7bc205ef9af1689a152b2fdf
Showing with 1 addition and 2 deletions.
  1. +1 −2 activerecord/lib/active_record/relation.rb
@@ -556,8 +556,7 @@ def reload
end
def reset
@last = @to_sql = @order_clause = @scope_for_create = @arel = @loaded = nil
@should_eager_load = @join_dependency = nil
@to_sql = @scope_for_create = @arel = @loaded = @should_eager_load = nil
@records = [].freeze
@offsets = {}
self

0 comments on commit 16f2b20

Please sign in to comment.