Commit 6964fc80 by Đường Sỹ Hoàng

Fixed identation

parent 9a5d9927
......@@ -60,16 +60,16 @@ class User < ApplicationRecord
UserMailer.account_activation(self).deliver_now
end
private
private
# Converts email to all lower-case.
def downcase_email
self.email = email.downcase
end
def downcase_email
self.email = email.downcase
end
# Creates and assigns the activation token and digest.
def create_activation_digest
self.activation_token = User.new_token
self.activation_digest = User.digest(activation_token)
end
def create_activation_digest
self.activation_token = User.new_token
self.activation_digest = User.digest(activation_token)
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment