mirror of
https://github.com/rickbarrette/redmine_qbo_vehicles.git
synced 2026-04-03 15:31:59 -04:00
Updated patches and hooks
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user