17 lines
293 B
Ruby
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
|
|
|