summaryrefslogtreecommitdiffstats
path: root/app/controllers/timelog_controller.rb
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-10-06 18:23:45 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-10-06 18:23:45 +0000
commit2ecca7e4df96cba3fe5ab75997ca179cd62968f8 (patch)
tree460a880a724dad450f262b175fb54fb89ff5e573 /app/controllers/timelog_controller.rb
parentc43ef6e7696e1f9684099a7a19d3b71b42ac5a06 (diff)
downloadredmine-2ecca7e4df96cba3fe5ab75997ca179cd62968f8.tar.gz
redmine-2ecca7e4df96cba3fe5ab75997ca179cd62968f8.zip
Refactor: rename TimelogController#details to #index
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4235 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/timelog_controller.rb')
-rw-r--r--app/controllers/timelog_controller.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/controllers/timelog_controller.rb b/app/controllers/timelog_controller.rb
index c03ea6891..bf571aa59 100644
--- a/app/controllers/timelog_controller.rb
+++ b/app/controllers/timelog_controller.rb
@@ -18,9 +18,9 @@
class TimelogController < ApplicationController
menu_item :issues
before_filter :find_project, :authorize, :only => [:edit, :destroy]
- before_filter :find_optional_project, :only => [:details]
+ before_filter :find_optional_project, :only => [:index]
- verify :method => :post, :only => :destroy, :redirect_to => { :action => :details }
+ verify :method => :post, :only => :destroy, :redirect_to => { :action => :index }
helper :sort
include SortHelper
@@ -29,7 +29,7 @@ class TimelogController < ApplicationController
helper :custom_fields
include CustomFieldsHelper
- def details
+ def index
sort_init 'spent_on', 'desc'
sort_update 'spent_on' => 'spent_on',
'user' => 'user_id',
@@ -95,7 +95,7 @@ class TimelogController < ApplicationController
if request.post? and @time_entry.save
flash[:notice] = l(:notice_successful_update)
- redirect_back_or_default :action => 'details', :project_id => @time_entry.project
+ redirect_back_or_default :action => 'index', :project_id => @time_entry.project
return
end
end
@@ -110,7 +110,7 @@ class TimelogController < ApplicationController
end
redirect_to :back
rescue ::ActionController::RedirectBackError
- redirect_to :action => 'details', :project_id => @time_entry.project
+ redirect_to :action => 'index', :project_id => @time_entry.project
end
private