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

Changed method Time

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