diff --git a/lib/project_patch.rb b/lib/project_patch.rb deleted file mode 100644 index 182db29e52..0000000000 --- a/lib/project_patch.rb +++ /dev/null @@ -1,33 +0,0 @@ -require_dependency 'project' - -# Patches Redmine's Issues dynamically. Adds a relationship -# Issue +belongs_to+ to Cost Object -module ProjectPatch - def self.included(base) # :nodoc: - base.extend(ClassMethods) - - base.send(:include, InstanceMethods) - - # Same as typing in the class - base.class_eval do - unloadable - - has_many :cost_objects - has_many :rates, :class_name => 'HourlyRate' - - has_many :member_groups, :class_name => 'Member', - :include => :principal, - :conditions => "#{Principal.table_name}.type='Group'" - has_many :groups, :through => :member_groups, :source => :principal - end - - end - - module ClassMethods - - end - - module InstanceMethods - - end -end