Sha256: 894939408052850b351c8c75dddcd7f6c34e0daba56a687f979ff4222334bd26
Contents?: true
Size: 1.57 KB
Versions: 4
Compression:
Stored size: 1.57 KB
Contents
# Copyright (c) 2008-2013 Michael Dvorkin and contributors. # # Fat Free CRM is freely distributable under the terms of MIT license. # See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php #------------------------------------------------------------------------------ class Admin::GroupsController < Admin::ApplicationController before_filter "set_current_tab('admin/groups')", :only => [ :index, :show ] load_resource # GET /groups #---------------------------------------------------------------------------- def index @groups = @groups.unscoped.paginate(:page => params[:page]) end # GET /groups/1 #---------------------------------------------------------------------------- def show respond_with(@group) end # GET /groups/new #---------------------------------------------------------------------------- def new respond_with(@group) end # GET /groups/1/edit #---------------------------------------------------------------------------- def edit respond_with(@group) end # POST /groups #---------------------------------------------------------------------------- def create @group.attributes = params[:group] @group.save respond_with(@group) end # PUT /groups/1 #---------------------------------------------------------------------------- def update @group.update_attributes(params[:group]) respond_with(@group) end # DELETE /groups/1 #---------------------------------------------------------------------------- def destroy @group.destroy respond_with(@group) end end
Version data entries
4 entries across 4 versions & 1 rubygems