From fcda1d09377a4371ff50eff14961ee7fcdc62bc6 Mon Sep 17 00:00:00 2001 From: rkh Date: Thu, 29 Apr 2010 16:07:18 +0000 Subject: [PATCH] remove project_patch.rb git-svn-id: https://dev.finn.de/svn/cockpit/trunk@973 7926756e-e54e-46e6-9721-ed318f58905e --- lib/project_patch.rb | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 lib/project_patch.rb 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