mirror of
https://github.com/internetee/registry.git
synced 2025-07-27 13:06:18 +02:00
Fixed codeclimate issues
This commit is contained in:
parent
6bf3819894
commit
0069d57c6f
4 changed files with 7 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue