Module: RecaptchaMailhide::URL
- Defined in:
- lib/recaptcha_mailhide/url.rb
Constant Summary collapse
- BASE_URL =
"https://www.google.com/recaptcha/mailhide/d"
Class Method Summary collapse
Class Method Details
.url_for(email_address) ⇒ Object
5 6 7 8 9 |
# File 'lib/recaptcha_mailhide/url.rb', line 5 def self.url_for(email_address) public_key = RecaptchaMailhide.configuration.public_key encrypted_address = Encrypt.encrypt(email_address) BASE_URL + "?k=#{public_key}&c=#{encrypted_address}" end |