16 lines
256 B
Ruby
16 lines
256 B
Ruby
module CartoDB
|
|
class PermissionGroupPresenter
|
|
|
|
def decorate(group_id)
|
|
group = Carto::Group.where(id: group_id).first
|
|
return {} if group.nil?
|
|
{
|
|
id: group.id,
|
|
name: group.name
|
|
}
|
|
end
|
|
|
|
end
|
|
end
|
|
|