diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-21 22:29:13 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-21 22:29:13 +0200 |
| commit | 18114a978b7c037da5194c48f860435e261f9a0b (patch) | |
| tree | 57d4fc0bbdff72c420c0597fc26efff25a188cc0 /app/models/asset.rb | |
| parent | 9c951f3a0f379b0f459988106cf3f839acdadbe2 (diff) | |
PDFs currently should have no credits attached to them in display
Diffstat (limited to 'app/models/asset.rb')
| -rw-r--r-- | app/models/asset.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/asset.rb b/app/models/asset.rb index 8aa5415d..9feefa9f 100644 --- a/app/models/asset.rb +++ b/app/models/asset.rb | |||
| @@ -25,4 +25,8 @@ class Asset < ApplicationRecord | |||
| 25 | def has_credit? | 25 | def has_credit? |
| 26 | creator.present? || source_url.present? || license_key.present? | 26 | creator.present? || source_url.present? || license_key.present? |
| 27 | end | 27 | end |
| 28 | |||
| 29 | def show_credit? | ||
| 30 | image? && has_credit? | ||
| 31 | end | ||
| 28 | end | 32 | end |
