diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2017-07-16 12:14:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-16 12:14:35 +0200 |
commit | 16f2b2044eaaa54b7bc205ef9af1689a152b2fdf (patch) | |
tree | 4764b7c6257d51633e983c7df40a1dbbf6d9797e | |
parent | f3d67e67abc1fc40b691372af318ede8e30fc4bf (diff) | |
parent | 555b383383699e289822dd3ebb0fbff1c14e5f9a (diff) | |
download | rails-16f2b2044eaaa54b7bc205ef9af1689a152b2fdf.tar.gz rails-16f2b2044eaaa54b7bc205ef9af1689a152b2fdf.tar.bz2 rails-16f2b2044eaaa54b7bc205ef9af1689a152b2fdf.zip |
Merge pull request #29809 from kamipo/remove_unused_ivars
Remove unused `@last`, `@order_clause`, and `@join_dependency`
-rw-r--r-- | activerecord/lib/active_record/relation.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/relation.rb b/activerecord/lib/active_record/relation.rb index 82018436a0..23cb1baaed 100644 --- a/activerecord/lib/active_record/relation.rb +++ b/activerecord/lib/active_record/relation.rb @@ -556,8 +556,7 @@ module ActiveRecord 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 |