Fixed codeclimate issues

This commit is contained in:
Sergei Tsoganov 2023-05-29 15:02:41 +03:00
parent 6bf3819894
commit 0069d57c6f
4 changed files with 7 additions and 3 deletions

View file

@ -7,6 +7,7 @@ module Serializers
@user = user
end
# rubocop:disable Metrics/MethodLength
def to_json(obj = user)
json = {
id: obj.id,
@ -24,6 +25,7 @@ module Serializers
json[:certificates] = certificates
json
end
# rubocop:enable Metrics/MethodLength
private