defer include to after_initialize for Rails 7
This commit is contained in:
parent
4d10d9c56b
commit
b7c1947520
|
|
@ -3,7 +3,7 @@ class Patent
|
|||
include Mongoid::Timestamps
|
||||
include OrbitModel::Status
|
||||
include Slug
|
||||
include Admin::PersonalPatentsHelper
|
||||
ActiveSupport.on_load(:after_initialize) { Patent.include Admin::PersonalPatentsHelper }
|
||||
has_and_belongs_to_many :patent_types
|
||||
has_and_belongs_to_many :patent_author_types
|
||||
belongs_to :member_profile
|
||||
|
|
|
|||
Loading…
Reference in New Issue