about summary refs log tree commit diff
path: root/app/presenters
diff options
context:
space:
mode:
authorashleyhull-versent <ashley.hull@versent.com.au>2018-10-08 09:20:45 +1100
committerEugen Rochko <eugen@zeonfederated.com>2018-10-08 00:20:45 +0200
commit2dba313100e2a5077df3ff4b00d12f9ed9f0bd72 (patch)
tree9af855e8d94c405ef575d146b552b436da03f1e7 /app/presenters
parent774ac473736cbf348827cf6d861e7fbbb72d7623 (diff)
Replace SVG asset with Custom mascot (#8766)
Diffstat (limited to 'app/presenters')
-rw-r--r--app/presenters/instance_presenter.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/presenters/instance_presenter.rb b/app/presenters/instance_presenter.rb
index a4e4af889..9a9157f1b 100644
--- a/app/presenters/instance_presenter.rb
+++ b/app/presenters/instance_presenter.rb
@@ -44,4 +44,8 @@ class InstancePresenter
   def hero
     @hero ||= Rails.cache.fetch('site_uploads/hero') { SiteUpload.find_by(var: 'hero') }
   end
+
+  def mascot
+    @mascot ||= Rails.cache.fetch('site_uploads/mascot') { SiteUpload.find_by(var: 'mascot') }
+  end
 end