Deprecated support for email address obfuscation within the mail_to helper method. Restores the options
:replace_dot, which were removed from Rails in version 4.0.
Any call to mail_to that doesn't include any of these options will be passed through to the core mail_to helper (in ActionView::Helpers::UrlHelper).
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install actionview-encoded_mail_to
mail_to helper method just as you did prior to Rails 4.0.
:replace_at- When the link name isn't provided, the email_address is used for the link label. You can use this option to obfuscate the email_address by substituting the @ sign with the string given as the value.
:replace_dot- When the link name isn't provided, the email_address is used for the link label. You can use this option to obfuscate the email_address by substituting the
.in the email with the string given as the value.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature')
- Push to the branch (
git push origin my-new-feature)
- Create new Pull Request