The source project of this merge request has been removed.
Allow SshHostKey.find_by to accept string keys
What does this MR do?
Follow-up to https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/24884#note_138021706
SshHostKey
is not an ActiveRecord
, but implements a find_by
method that pretends to be one. This MR allows that method to receive options from a hash with string keys as well as from a hash with symbol keys, bringing its behaviour closer to that expected from a find_by
method provided by Rails.
What are the relevant issue numbers?
Does this MR meet the acceptance criteria?
- [-] Changelog entry added, if necessary
-
Tests added for this feature/bug -
Conforms to the code review guidelines -
Conforms to the merge request performance guidelines -
Conforms to the style guides -
Security reports checked/validated by reviewer