cartodb/app/models/permission/permission_group_presenter.rb
2020-06-15 10:58:47 +08:00

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