module Pollett
Constants
- TOKEN_LENGTH
- VERSION
Public Class Methods
config()
click to toggle source
# File lib/pollett/configuration.rb, line 6 def self.config @config ||= Configuration.new end
configure() { |config| ... }
click to toggle source
# File lib/pollett/configuration.rb, line 2 def self.configure yield config end
generate_token(length = TOKEN_LENGTH)
click to toggle source
# File lib/pollett.rb, line 13 def self.generate_token(length = TOKEN_LENGTH) SecureRandom.urlsafe_base64(length) end
reset_url(token)
click to toggle source
# File lib/pollett.rb, line 17 def self.reset_url(token) config.reset_url.call(token) end