Skip to content

Commit

Permalink
add redmine 4.0 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
jkalbhenn committed Jan 24, 2019
1 parent ac162d5 commit d987d44
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions app/controllers/timesheet_controller.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
class TimesheetController < ApplicationController
unloadable
layout 'base'
before_filter :get_list_size
before_filter :get_precision
before_filter :get_activities

if Rails::VERSION::MAJOR >= 4
before_action :get_list_size
before_action :get_precision
before_action :get_activities
else
before_filter :get_list_size
before_filter :get_precision
before_filter :get_activities
end

helper :sort
include SortHelper
helper :issues
Expand Down

0 comments on commit d987d44

Please sign in to comment.