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