Refactored core Redmine patches so the plugin can be run in development.

This commit is contained in:
Eric Davis
2009-04-21 21:44:58 -07:00
parent 5513f0064b
commit 452edfeeaa
6 changed files with 14 additions and 5 deletions
+10 -1
View File
@@ -1,9 +1,18 @@
require 'redmine'
require 'rate_users_helper_patch'
# Patches to the Redmine core
require 'dispatcher'
require 'rate_sort_helper_patch'
require 'rate_time_entry_patch'
require 'rate_users_helper_patch'
Dispatcher.to_prepare do
SortHelper.send(:include, RateSortHelperPatch)
TimeEntry.send(:include, RateTimeEntryPatch)
UsersHelper.send(:include, RateUsersHelperPatch)
end
# Hooks
require 'rate_project_hook'
Redmine::Plugin.register :redmine_rate do