Resolve deprecation warnings
Description
There are several codes that invoke functions/functionalities that would later be deprecated:
- reset_* method missing are deprecated as per 4.2, and will be removed in 5.0.
- using find by passing an AR as an argument to it
However, there are deprecation warning that has been addressed in Gitlab's side but, from the gem maintainer perspective, the said class is not yet removed. Hence, the only safe thing to do ATM is to lock the gem version, which has been done.
Proposal
These proposals are written in tandem with the problems as described above:
- change it to restore_*
- ensure find's argument is not an active record object
Links / references
- Rails deprecating reset_* in favor of restore_*: Rails 4.2 release notes