diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-06-01 19:07:22 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-06-01 19:07:22 +0000 |
commit | d58e5a0a1e9e34e860575977581007b2de91184a (patch) | |
tree | 42c00f85b2eb5d0e724b851c55110d22c5934f1d /app/controllers/groups_controller.rb | |
parent | 9f531a4380852c466c62bb55734b347a03b82e55 (diff) | |
download | redmine-d58e5a0a1e9e34e860575977581007b2de91184a.tar.gz redmine-d58e5a0a1e9e34e860575977581007b2de91184a.zip |
Removed auto-generated comments.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9747 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/groups_controller.rb')
-rw-r--r-- | app/controllers/groups_controller.rb | 27 |
1 files changed, 7 insertions, 20 deletions
diff --git a/app/controllers/groups_controller.rb b/app/controllers/groups_controller.rb index 834c27ec1..8eb59d035 100644 --- a/app/controllers/groups_controller.rb +++ b/app/controllers/groups_controller.rb @@ -22,46 +22,33 @@ class GroupsController < ApplicationController helper :custom_fields - # GET /groups - # GET /groups.xml def index @groups = Group.find(:all, :order => 'lastname') respond_to do |format| - format.html # index.html.erb + format.html format.xml { render :xml => @groups } end end - # GET /groups/1 - # GET /groups/1.xml def show @group = Group.find(params[:id]) respond_to do |format| - format.html # show.html.erb + format.html format.xml { render :xml => @group } end end - # GET /groups/new - # GET /groups/new.xml def new @group = Group.new respond_to do |format| - format.html # new.html.erb + format.html format.xml { render :xml => @group } end end - # GET /groups/1/edit - def edit - @group = Group.find(params[:id], :include => :projects) - end - - # POST /groups - # POST /groups.xml def create @group = Group.new @group.safe_attributes = params[:group] @@ -80,8 +67,10 @@ class GroupsController < ApplicationController end end - # PUT /groups/1 - # PUT /groups/1.xml + def edit + @group = Group.find(params[:id], :include => :projects) + end + def update @group = Group.find(params[:id]) @group.safe_attributes = params[:group] @@ -98,8 +87,6 @@ class GroupsController < ApplicationController end end - # DELETE /groups/1 - # DELETE /groups/1.xml def destroy @group = Group.find(params[:id]) @group.destroy |