Patch integration cleanups

This commit is contained in:
Alexander Meindl
2020-04-12 15:49:13 +02:00
parent 294f435452
commit 54de15db0b
5 changed files with 35 additions and 30 deletions

View File

@@ -1,12 +1,13 @@
module RedmineMessenger
module Patches
module ContactPatch
def self.included(base)
base.include InstanceMethods
base.class_eval do
after_create_commit :send_messenger_create
after_update_commit :send_messenger_update
end
extend ActiveSupport::Concern
included do
include InstanceMethods
after_create_commit :send_messenger_create
after_update_commit :send_messenger_update
end
module InstanceMethods

View File

@@ -1,12 +1,13 @@
module RedmineMessenger
module Patches
module DbEntryPatch
def self.included(base)
base.include InstanceMethods
base.class_eval do
after_create_commit :send_messenger_create
after_update_commit :send_messenger_update
end
extend ActiveSupport::Concern
included do
include InstanceMethods
after_create_commit :send_messenger_create
after_update_commit :send_messenger_update
end
module InstanceMethods

View File

@@ -1,12 +1,13 @@
module RedmineMessenger
module Patches
module IssuePatch
def self.included(base)
base.include InstanceMethods
base.class_eval do
after_create_commit :send_messenger_create
after_update_commit :send_messenger_update
end
extend ActiveSupport::Concern
included do
include InstanceMethods
after_create_commit :send_messenger_create
after_update_commit :send_messenger_update
end
module InstanceMethods

View File

@@ -1,12 +1,13 @@
module RedmineMessenger
module Patches
module PasswordPatch
def self.included(base)
base.include InstanceMethods
base.class_eval do
after_create_commit :send_messenger_create
after_update_commit :send_messenger_update
end
extend ActiveSupport::Concern
included do
include InstanceMethods
after_create_commit :send_messenger_create
after_update_commit :send_messenger_update
end
module InstanceMethods

View File

@@ -1,12 +1,13 @@
module RedmineMessenger
module Patches
module WikiPagePatch
def self.included(base)
base.include InstanceMethods
base.class_eval do
after_create_commit :send_messenger_create
after_update_commit :send_messenger_update
end
extend ActiveSupport::Concern
included do
include InstanceMethods
after_create_commit :send_messenger_create
after_update_commit :send_messenger_update
end
module InstanceMethods