Confine DelegateBelongsTo patch to our app

This commit is contained in:
Maikel Linke
2021-04-15 12:22:28 +10:00
parent 1364b878fe
commit 1893313c40
2 changed files with 2 additions and 2 deletions

View File

@@ -1,5 +1,7 @@
# frozen_string_literal: true
class ApplicationRecord < ActiveRecord::Base
include DelegateBelongsTo
self.abstract_class = true
end

View File

@@ -90,5 +90,3 @@ module DelegateBelongsTo
end
protected :delegator_for
end
ActiveRecord::Base.include(DelegateBelongsTo)