diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 2931df7c8..4de369343 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -18,7 +18,6 @@ Bundler/OrderedGems: # SupportedStyles: outdent, indent Layout/AccessModifierIndentation: Exclude: - - 'app/controllers/timelog_controller.rb' - 'app/controllers/wiki_controller.rb' - 'app/models/role.rb' @@ -98,7 +97,6 @@ Layout/EmptyLines: Layout/EmptyLinesAroundAccessModifier: Exclude: - 'app/controllers/previews_controller.rb' - - 'app/controllers/timelog_controller.rb' - 'config/initializers/10-patches.rb' - 'lib/redmine/syntax_highlighting.rb' diff --git a/app/controllers/timelog_controller.rb b/app/controllers/timelog_controller.rb index 257660adf..4c4e7df79 100644 --- a/app/controllers/timelog_controller.rb +++ b/app/controllers/timelog_controller.rb @@ -242,7 +242,8 @@ class TimelogController < ApplicationController end end -private + private + def find_time_entry @time_entry = TimeEntry.find(params[:id]) @project = @time_entry.project