Skip to content

Commit d987d44

Browse files
committed
add redmine 4.0 compatibility
1 parent ac162d5 commit d987d44

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

app/controllers/timesheet_controller.rb

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
class TimesheetController < ApplicationController
22
unloadable
33
layout 'base'
4-
before_filter :get_list_size
5-
before_filter :get_precision
6-
before_filter :get_activities
4+
5+
if Rails::VERSION::MAJOR >= 4
6+
before_action :get_list_size
7+
before_action :get_precision
8+
before_action :get_activities
9+
else
10+
before_filter :get_list_size
11+
before_filter :get_precision
12+
before_filter :get_activities
13+
end
14+
715
helper :sort
816
include SortHelper
917
helper :issues

0 commit comments

Comments
 (0)