Change last_used_at to use touch

This commit is contained in:
Kamil Trzcinski 2016-11-17 16:29:16 +01:00
parent 1ddfc574ce
commit d444fd3460

View file

@ -9,7 +9,7 @@ module ChatNames
chat_name = find_chat_name
return unless chat_name
chat_name.update(last_used_at: Time.now)
chat_name.touch(:last_used_at)
chat_name.user
end