FEATURE: add flair to avatars using new settings in the groups admin UI

This commit is contained in:
Neil Lalonde
2016-08-16 12:34:04 -04:00
parent 72d7c055f4
commit d079f69b7b
18 changed files with 195 additions and 9 deletions

View File

@ -65,6 +65,9 @@ class Admin::GroupsController < Admin::AdminController
title = params[:title] if params[:title].present?
group.title = group.automatic ? nil : title
group.flair_url = params[:flair_url].presence
group.flair_bg_color = params[:flair_bg_color].presence
if group.save
Group.reset_counters(group.id, :group_users)
render_serialized(group, BasicGroupSerializer)