This repository has been archived on 2024-07-31. You can view files and clone it, but cannot push or open issues or pull requests.
2021-02-10 20:18:56 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module MascotHelper
|
|
|
|
def mascot_url
|
2024-01-17 07:19:51 -05:00
|
|
|
full_asset_url(instance_presenter.mascot&.file&.url || frontend_asset_path('images/elephant_ui_plane.svg'))
|
2021-02-10 20:18:56 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
def instance_presenter
|
|
|
|
@instance_presenter ||= InstancePresenter.new
|
|
|
|
end
|
|
|
|
end
|