cartodb-4.42/app/models/permission/permission_organization_presenter.rb
2024-04-06 05:25:13 +00:00

17 lines
293 B
Ruby

module CartoDB
class PermissionOrganizationPresenter
def decorate(org_id)
org = Organization.where(id: org_id).first
return {} if org.nil?
{
id: org.id,
name: org.name,
avatar_url: org.avatar_url
}
end
end
end