Module: BravoLock::Model::Emails

Extended by:
ActiveSupport::Concern
Defined in:
lib/bravo_lock/model/emails.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#email=(value) ⇒ Object

nodoc



6
7
8
9
# File 'lib/bravo_lock/model/emails.rb', line 6

def email=(value)
  value = value.downcase if value.is_a?(String)
  super(value)
end

#reset_email_tokenObject

nodoc



13
14
15
# File 'lib/bravo_lock/model/emails.rb', line 13

def reset_email_token
  self.email_token = SecureRandom.hex(16)
end