@ -1,5 +1,3 @@
require_dependency 'application_controller'
module OpenProject::Costs::Patches::ApplicationControllerPatch
def self.included(base) # :nodoc:
base.send(:include, InstanceMethods)
@ -17,5 +15,3 @@ module OpenProject::Costs::Patches::ApplicationControllerPatch
end
ApplicationController.send(:include, OpenProject::Costs::Patches::ApplicationControllerPatch)
@ -1,6 +1,4 @@
require_dependency 'application_helper'
module OpenProject::Costs::PatchesApplicationHelperPatch
module OpenProject::Costs::Patches::ApplicationHelperPatch
# Same as typing in the class
base.class_eval do
@ -23,5 +21,3 @@ module OpenProject::Costs::PatchesApplicationHelperPatch
ApplicationHelper.send(:include, OpenProject::Costs::PatchesApplicationHelperPatch)
require_dependency 'permitted_params'
module OpenProject::Costs::Patches::PermittedParamsPatch
@ -39,5 +37,3 @@ module OpenProject::Costs::Patches::PermittedParamsPatch
PermittedParams.send(:include, OpenProject::Costs::Patches::PermittedParamsPatch)
require_dependency 'project'
module OpenProject::Costs::Patches::ProjectPatch
@ -17,5 +15,3 @@ module OpenProject::Costs::Patches::ProjectPatch
Project.send(:include, OpenProject::Costs::Patches::ProjectPatch)
require_dependency 'projects_controller'
module OpenProject::Costs::Patches::ProjectsControllerPatch
@ -19,5 +17,3 @@ module OpenProject::Costs::Patches::ProjectsControllerPatch
ProjectsController.send(:include, OpenProject::Costs::Patches::ProjectsControllerPatch)
require_dependency 'query'
module OpenProject::Costs::Patches::QueryPatch
class CurrencyQueryColumn < QueryColumn
unloadable
@ -67,5 +65,3 @@ module OpenProject::Costs::Patches::QueryPatch
Query.send(:include, OpenProject::Costs::Patches::QueryPatch)
@ -67,5 +67,3 @@ module OpenProject::Costs::Patches::RolePatch
Role.send(:include, OpenProject::Costs::Patches::RolePatch)
require_dependency 'time_entry'
# Patches Redmine's Users dynamically.
module OpenProject::Costs::Patches::TimeEntryPatch
@ -106,5 +104,3 @@ module OpenProject::Costs::Patches::TimeEntryPatch
TimeEntry.send(:include, OpenProject::Costs::Patches::TimeEntryPatch)
@ -1,8 +1,3 @@
require_dependency 'principal'
require_dependency 'user'
module OpenProject::Costs::Patches::UserPatch
@ -95,5 +90,3 @@ module OpenProject::Costs::Patches::UserPatch
User.send(:include, OpenProject::Costs::Patches::UserPatch)
require_dependency 'users_helper'
module OpenProject::Costs::Patches::UsersHelperPatch
@ -20,5 +18,3 @@ module OpenProject::Costs::Patches::UsersHelperPatch
UsersHelper.send(:include, OpenProject::Costs::Patches::UsersHelperPatch)
require_dependency 'version'
module OpenProject::Costs::Patches::VersionPatch
@ -16,5 +14,3 @@ module OpenProject::Costs::Patches::VersionPatch
Version.send(:include, OpenProject::Costs::Patches::VersionPatch)
require 'work_package'
module OpenProject::Costs::Patches::WorkPackagePatch
base.extend(ClassMethods)
@ -126,4 +124,3 @@ module OpenProject::Costs::Patches::WorkPackagePatch
WorkPackage::SAFE_ATTRIBUTES << "cost_object_id" if WorkPackage.const_defined? "SAFE_ATTRIBUTES"
WorkPackage.send(:include, OpenProject::Costs::Patches::WorkPackagePatch)