Files
ubicloud/serializers/github_installation.rb
Burak Velioglu cdcd18c18d Add ubid and cache_enabled to github installation serialization
Since enabling/disabling cache will be added to the UI
for users to update, adding necessary columns to the
serialization of github installation model.
2024-11-29 16:09:47 +03:00

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