lib/name_of_person/loaders/active_model_has_person_name.rb
if ActiveSupport.gem_version.to_s < "7.1.0.alpha" if defined?(ActiveModel) ActiveModel::Model.send :include, NameOfPerson::HasPersonName end else ActiveSupport.on_load(:active_model) do include NameOfPerson::HasPersonName end end