2021-02-11 12:18:56 +11:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module MascotHelper
|
|
|
|
def mascot_url
|
2024-01-17 23:19:51 +11:00
|
|
|
full_asset_url(instance_presenter.mascot&.file&.url || frontend_asset_path('images/elephant_ui_plane.svg'))
|
2021-02-11 12:18:56 +11:00
|
|
|
end
|
|
|
|
|
|
|
|
def instance_presenter
|
|
|
|
@instance_presenter ||= InstancePresenter.new
|
|
|
|
end
|
|
|
|
end
|