Removed EnumerationsController#list action.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7973 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
b8a924e4e1
commit
2dbbdafbc6
|
@ -24,16 +24,10 @@ class EnumerationsController < ApplicationController
|
|||
include CustomFieldsHelper
|
||||
|
||||
def index
|
||||
list
|
||||
render :action => 'list'
|
||||
end
|
||||
|
||||
# GETs should be safe (see http://www.w3.org/2001/tag/doc/whenToUseGet.html)
|
||||
verify :method => :post, :only => [ :destroy, :create, :update ],
|
||||
:redirect_to => { :action => :list }
|
||||
|
||||
def list
|
||||
end
|
||||
:redirect_to => { :action => :index }
|
||||
|
||||
def new
|
||||
begin
|
||||
|
@ -48,7 +42,7 @@ class EnumerationsController < ApplicationController
|
|||
@enumeration.type = params[:enumeration][:type]
|
||||
if @enumeration.save
|
||||
flash[:notice] = l(:notice_successful_create)
|
||||
redirect_to :action => 'list', :type => @enumeration.type
|
||||
redirect_to :action => 'index', :type => @enumeration.type
|
||||
else
|
||||
render :action => 'new'
|
||||
end
|
||||
|
@ -63,7 +57,7 @@ class EnumerationsController < ApplicationController
|
|||
@enumeration.type = params[:enumeration][:type] if params[:enumeration][:type]
|
||||
if @enumeration.update_attributes(params[:enumeration])
|
||||
flash[:notice] = l(:notice_successful_update)
|
||||
redirect_to :action => 'list', :type => @enumeration.type
|
||||
redirect_to :action => 'index', :type => @enumeration.type
|
||||
else
|
||||
render :action => 'edit'
|
||||
end
|
||||
|
|
|
@ -34,7 +34,7 @@ class EnumerationsControllerTest < ActionController::TestCase
|
|||
def test_index
|
||||
get :index
|
||||
assert_response :success
|
||||
assert_template 'list'
|
||||
assert_template 'index'
|
||||
end
|
||||
|
||||
def test_destroy_enumeration_not_in_use
|
||||
|
|
Loading…
Reference in New Issue