KimNorgaard / validates_hostname

Extension to ActiveRecord::Base for validating hostnames and domain names
MIT License
38 stars 12 forks source link

Ruby 2.7 deprecation warning #14

Closed NDuggan closed 4 years ago

NDuggan commented 4 years ago

Version: 1.0.10 Ruby: 2.7.1

/usr/local/bundle/gems/validates_hostname-1.0.10/lib/validates_hostname.rb:245: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
nadnoslen commented 4 years ago

Hey @KimNorgaard & @NDuggan,

Pull this down and splatted the last argument of the I18n.t(...) calls to overcome this Ruby-2.7 warning.

Followed the direction of: https://bloggie.io/@kinopyo/how-to-fix-ruby-2-7-warning-using-the-last-argument-as-keyword-parameters-is-deprecated

Thanks.

KimNorgaard commented 4 years ago

Thanks for the PR. It's merged and pushed.