Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add (or remove) deprecation notice for with: option #42

Closed
alexdunae opened this issue Aug 15, 2014 · 2 comments · Fixed by #91
Closed

Add (or remove) deprecation notice for with: option #42

alexdunae opened this issue Aug 15, 2014 · 2 comments · Fixed by #91

Comments

@alexdunae
Copy link
Contributor

https://github.com/validates-email-format-of/validates_email_format_of/blob/master/lib/validates_email_format_of.rb#L58-L62

We should either log something if it's going to be deprecated, or de-deprecate and just let it live on.

@betesh
Copy link
Contributor

betesh commented Aug 15, 2014

Personally, I don't really see any use for it. Most ActiveModel email validation that's not using this gem is instead using validates_format_of :email, :with => ..., and the main benefit of our gem is that nobody has to rewrite the Regex. So if someone wants to write a custom Regex, I don't see the advantage to using this gem over ActiveModel's native FormatValidator.

So I'm all for deprecating it. Are there any reasons not to?

@alexdunae
Copy link
Contributor Author

The only use case in can think of is if someone has a mixed list of emails, some proper, some not, and wants to be able to selectively override. Pretty tenuous...

I say deprecate then remove.

Dialect // 778-992-2229 // dialect.ca

On Aug 15, 2014, at 11:34 AM, betesh notifications@github.com wrote:

Personally, I don't really see any use for it. Most ActiveModel email validation that's not using this gem is instead using validates_format_of :email, :with => ..., and the main benefit of our gem is that nobody has to rewrite the Regex. So if someone wants to write a custom Regex, I don't see the advantage to using this gem over ActiveModel's native FormatValidator.

So I'm all for deprecating it. Are there any reasons not to?


Reply to this email directly or view it on GitHub.

alexdunae added a commit that referenced this issue Aug 8, 2022
alexdunae added a commit that referenced this issue Aug 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants