Removed auto-generated comments.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9747 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
9f531a4380
commit
d58e5a0a1e
|
@ -22,46 +22,33 @@ class GroupsController < ApplicationController
|
||||||
|
|
||||||
helper :custom_fields
|
helper :custom_fields
|
||||||
|
|
||||||
# GET /groups
|
|
||||||
# GET /groups.xml
|
|
||||||
def index
|
def index
|
||||||
@groups = Group.find(:all, :order => 'lastname')
|
@groups = Group.find(:all, :order => 'lastname')
|
||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html # index.html.erb
|
format.html
|
||||||
format.xml { render :xml => @groups }
|
format.xml { render :xml => @groups }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# GET /groups/1
|
|
||||||
# GET /groups/1.xml
|
|
||||||
def show
|
def show
|
||||||
@group = Group.find(params[:id])
|
@group = Group.find(params[:id])
|
||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html # show.html.erb
|
format.html
|
||||||
format.xml { render :xml => @group }
|
format.xml { render :xml => @group }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# GET /groups/new
|
|
||||||
# GET /groups/new.xml
|
|
||||||
def new
|
def new
|
||||||
@group = Group.new
|
@group = Group.new
|
||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html # new.html.erb
|
format.html
|
||||||
format.xml { render :xml => @group }
|
format.xml { render :xml => @group }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# GET /groups/1/edit
|
|
||||||
def edit
|
|
||||||
@group = Group.find(params[:id], :include => :projects)
|
|
||||||
end
|
|
||||||
|
|
||||||
# POST /groups
|
|
||||||
# POST /groups.xml
|
|
||||||
def create
|
def create
|
||||||
@group = Group.new
|
@group = Group.new
|
||||||
@group.safe_attributes = params[:group]
|
@group.safe_attributes = params[:group]
|
||||||
|
@ -80,8 +67,10 @@ class GroupsController < ApplicationController
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# PUT /groups/1
|
def edit
|
||||||
# PUT /groups/1.xml
|
@group = Group.find(params[:id], :include => :projects)
|
||||||
|
end
|
||||||
|
|
||||||
def update
|
def update
|
||||||
@group = Group.find(params[:id])
|
@group = Group.find(params[:id])
|
||||||
@group.safe_attributes = params[:group]
|
@group.safe_attributes = params[:group]
|
||||||
|
@ -98,8 +87,6 @@ class GroupsController < ApplicationController
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# DELETE /groups/1
|
|
||||||
# DELETE /groups/1.xml
|
|
||||||
def destroy
|
def destroy
|
||||||
@group = Group.find(params[:id])
|
@group = Group.find(params[:id])
|
||||||
@group.destroy
|
@group.destroy
|
||||||
|
|
Loading…
Reference in New Issue