validates_hostname
validates_hostname copied to clipboard
defer inclusion of validator
#10 is closed without fix. #12 fixes #10 but it involves other things to resolve.
This PR try to fix #10 with minimum changes. Refer https://guides.rubyonrails.org/configuring.html#avoid-loading-rails-frameworks. This is true for older Rails.