summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
Diffstat (limited to 'app/models')
-rw-r--r--app/models/asset.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/asset.rb b/app/models/asset.rb
index 8bea1b3..4a295d8 100644
--- a/app/models/asset.rb
+++ b/app/models/asset.rb
@@ -15,4 +15,8 @@ class Asset < ApplicationRecord
15 def image? 15 def image?
16 IMAGE_CONTENT_TYPES.include?(upload_content_type) 16 IMAGE_CONTENT_TYPES.include?(upload_content_type)
17 end 17 end
18
19 def has_credit?
20 creator.present? || source_url.present? || license_key.present?
21 end
18end 22end