mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-28 01:53:25 +00:00
Confine DelegateBelongsTo patch to our app
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class ApplicationRecord < ActiveRecord::Base
|
||||
include DelegateBelongsTo
|
||||
|
||||
self.abstract_class = true
|
||||
end
|
||||
|
||||
@@ -90,5 +90,3 @@ module DelegateBelongsTo
|
||||
end
|
||||
protected :delegator_for
|
||||
end
|
||||
|
||||
ActiveRecord::Base.include(DelegateBelongsTo)
|
||||
|
||||
Reference in New Issue
Block a user