Use touch to record viewing annual report (#35296)
This commit is contained in:
@@ -24,7 +24,7 @@ class GeneratedAnnualReport < ApplicationRecord
|
|||||||
end
|
end
|
||||||
|
|
||||||
def view!
|
def view!
|
||||||
update!(viewed_at: Time.now.utc)
|
touch(:viewed_at)
|
||||||
end
|
end
|
||||||
|
|
||||||
def account_ids
|
def account_ids
|
||||||
|
|||||||
Reference in New Issue
Block a user