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

Fixed identation

parent 9a5d9927
...@@ -60,16 +60,16 @@ class User < ApplicationRecord ...@@ -60,16 +60,16 @@ class User < ApplicationRecord
UserMailer.account_activation(self).deliver_now UserMailer.account_activation(self).deliver_now
end end
private private
# Converts email to all lower-case. # Converts email to all lower-case.
def downcase_email def downcase_email
self.email = email.downcase self.email = email.downcase
end end
# Creates and assigns the activation token and digest. # Creates and assigns the activation token and digest.
def create_activation_digest def create_activation_digest
self.activation_token = User.new_token self.activation_token = User.new_token
self.activation_digest = User.digest(activation_token) self.activation_digest = User.digest(activation_token)
end end
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