Since enabling/disabling cache will be added to the UI for users to update, adding necessary columns to the serialization of github installation model.
16 lines
441 B
Ruby
16 lines
441 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Serializers::GithubInstallation < Serializers::Base
|
|
def self.serialize_internal(ins, options = {})
|
|
{
|
|
id: ins.id,
|
|
ubid: ins.ubid,
|
|
name: ins.name,
|
|
type: ins.type,
|
|
cache_enabled: ins.cache_enabled,
|
|
installation_id: ins.installation_id,
|
|
installation_url: "https://github.com/apps/#{Config.github_app_name}/installations/#{ins.installation_id}"
|
|
}
|
|
end
|
|
end
|