Purged git history and removed sensitive information.

This commit is contained in:
Luke Barratt 2014-03-23 00:22:25 +00:00
commit 6bcc8dc76b
862 changed files with 25312 additions and 0 deletions

View file

@ -0,0 +1,35 @@
class GroupersController < ApplicationController
def create
@grouper = Grouper.new params[:grouper]
raise AccessError unless @grouper.can_create? cuser
if @grouper.save
flash[:notice] = t(:groups_user_add)
else
flash[:error] = @grouper.errors.full_messages.to_s
end
redirect_to_back
end
def update
@grouper = Grouper.find params[:id]
raise AccessError unless @grouper.can_update? cuser
if @grouper.update_attributes params[:grouper]
flash[:notice] = t(:groups_user_update)
else
flash[:error] = @grouper.errors.full_messages.to_s
end
redirect_to_back
end
def destroy
@grouper = Grouper.find params[:id]
raise AccessError unless @grouper.can_destroy? cuser
@grouper.destroy
redirect_to_back
end
end