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