validates_hostname icon indicating copy to clipboard operation
validates_hostname copied to clipboard

Extension to ActiveRecord::Base for validating hostnames and domain names

Results 4 validates_hostname issues
Sort by recently updated
recently updated
newest added

Rather than updating the constant, and then waiting for a release, would it make sense to have a config option for gem users to configure the `ALLOWED_TLDS` ? I guess...

Rails 4 introduced ActiveModel, ActiveModel::Validations and ActiveModel::EachValidator. Instead of injecting ourselves into ActiveRecord::Base, we will be automatically picked up. This fixes #10. We can now also be used on ActiveModel...

I was wondering why Rails.application.config.active_record.belongs_to_required_by_default was not working and this gem is the culprit. I am wondering whether there is a fix for this.

When reading through the docs, I noticed a typo in the example. This PR addresses this.