Permalink
Browse files

Revert TimeTrackerCompatibility stuff

  • Loading branch information...
delaitre committed Jan 17, 2011
1 parent e7252c3 commit 952eb1a5154e2efb8435bf83caff3b5125e65b6e
Showing with 1 addition and 13 deletions.
  1. +1 −2 app/controllers/time_trackers_controller.rb
  2. +0 −1 init.rb
  3. +0 −10 lib/time_tracker_compatibility.rb
@@ -70,8 +70,7 @@ def stop
hours = @time_tracker.hours_spent.round(2)
@time_tracker.destroy
- logtime_action = TimeTrackerCompatibility::TimelogController.correct_logtime_action?
- redirect_to :controller => 'timelog', :action => logtime_action, :issue_id => issue_id, :time_entry => { :hours => hours }
+ redirect_to :controller => 'timelog', :action => 'edit', :issue_id => issue_id, :time_entry => { :hours => hours }
end
end
View
@@ -1,7 +1,6 @@
require 'redmine'
require_dependency 'time_tracker_hooks'
-require_dependency 'time_tracker_compatibility'
Redmine::Plugin.register :redmine_time_tracker do
name 'Redmine Time Tracker plugin'
@@ -1,10 +0,0 @@
-# Wrappers around the Redmine Core API changes between versions
-module TimeTrackerCompatibility
- class TimelogController
- # Wrapper around Redmine's API since TimelogController changed in trunk @ r4239
- # This can be removed once 1.1.0 is stable
- def self.correct_logtime_action?
- ::TimelogController.method_defined?("new") ? 'new' : 'edit'
- end
- end
-end

0 comments on commit 952eb1a

Please sign in to comment.