Updated patches and hooks

This commit is contained in:
2026-03-21 12:23:23 -04:00
parent ea73878c71
commit 097276e558
4 changed files with 32 additions and 24 deletions

View File

@@ -14,16 +14,12 @@ module Vehicles
# Patches Redmine QBO Customer dynamically.
# Adds a relationship for vehicle ownership by customers
module CustomerPatch
extend ActiveSupport::Concern
ActiveSupport.on_load(:active_record) do
Customer.class_eval do
has_many :vehicles
end
prepended do
has_many :vehicles
end
end
end
end