Commit 0a769f20 by Đường Sỹ Hoàng

Changed method Time

parent 6964fc80
...@@ -52,7 +52,7 @@ class User < ApplicationRecord ...@@ -52,7 +52,7 @@ class User < ApplicationRecord
# Activates an account. # Activates an account.
def activate def activate
update_columns(activated: true, activated_at: Time.zone.now) update_columns(activated: true, activated_at: Time.current)
end end
# Sends activation email. # Sends activation email.
......
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