diff --git a/lib/name_of_person/loaders/active_model_has_person_name.rb b/lib/name_of_person/loaders/active_model_has_person_name.rb index ab11f76..269d22c 100644 --- a/lib/name_of_person/loaders/active_model_has_person_name.rb +++ b/lib/name_of_person/loaders/active_model_has_person_name.rb @@ -1,4 +1,4 @@ -if ActiveSupport.gem_version < "7.1.0.alpha" +if ActiveSupport.gem_version < Gem::Version.new('7.1.0.alpha') if defined?(ActiveModel) ActiveModel::Model.send :include, NameOfPerson::HasPersonName end