mirror of
https://github.com/rickbarrette/redmine_qbo_vehicles.git
synced 2026-11-18 02:40:37 -05:00
Updated patches and hooks
This commit is contained in:
1 parent
ea73878c71
commit
097276e558
4 files changed
+32
-24
No files matched your search
@@ -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