REFACTOR: Add urls for admin groups, make it more idiomatic ember

This commit is contained in:
Robin Ward
2014-04-23 13:25:02 -04:00
parent 84da39f5dc
commit e48cf06fc9
14 changed files with 206 additions and 197 deletions

View File

@@ -4,6 +4,10 @@ class Admin::GroupsController < Admin::AdminController
render_serialized(groups, BasicGroupSerializer)
end
def show
render nothing: true
end
def refresh_automatic_groups
Group.refresh_automatic_groups!
render json: success_json
@@ -31,7 +35,7 @@ class Admin::GroupsController < Admin::AdminController
def create
group = Group.new
group.name = params[:group][:name].strip
group.name = (params[:group][:name] || '').strip
group.usernames = params[:group][:usernames] if params[:group][:usernames]
group.visible = params[:group][:visible] == "true"
if group.save