diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-08-02 19:09:38 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-08-02 19:09:38 -0500 |
commit | fc2e81c93fbb23ffaa8576b7b03d2333ca563b7e (patch) | |
tree | 89176cec5041648e4037321a95a91c9f6cdf6c0d /app/models | |
parent | dbcc560826f8ff01a63ebb45b69234f6c6e4517c (diff) |
only domain policies have an `updated_at` attribute
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/instance.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/instance.rb b/app/models/instance.rb index ad885dde6..0839894d9 100644 --- a/app/models/instance.rb +++ b/app/models/instance.rb @@ -9,7 +9,7 @@ class Instance @domain = resource.domain @accounts_count = resource.is_a?(DomainBlock) ? nil : resource.accounts_count @domain_block = resource.is_a?(DomainBlock) ? resource : DomainBlock.find_by(domain: domain) - @updated_at = resource.updated_at + @updated_at = resource.is_a?(DomainBlock) ? resource.updated_at : 0 end def cached_sample_accounts |