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