gitlab-org--gitlab-foss/rubocop
Kamil Trzciński 650f40865e Forbid the use of `#reload` and prefer `#reset`
The `#reload` makes to load all objects into memory,
and the main purpose of `#reload` is to drop the association cache.

The `#reset` seems to solve exactly that case.
2019-04-15 13:05:14 +02:00
..
cop Forbid the use of `#reload` and prefer `#reset` 2019-04-15 13:05:14 +02:00
code_reuse_helpers.rb Added RuboCop cops to enforce code reuse rules 2018-09-11 15:00:18 +02:00
migration_helpers.rb Add cop for use of remove_column 2017-12-11 16:34:51 +00:00
qa_helpers.rb Add a new QA::ElementWithPattern cop 2018-10-15 14:28:03 +02:00
rubocop.rb Forbid the use of `#reload` and prefer `#reset` 2019-04-15 13:05:14 +02:00
spec_helpers.rb Prevent factories in background migration specs 2019-01-16 13:15:33 +01:00