mascot_helper.rb 285 B

12345678910111213
  1. # frozen_string_literal: true
  2. module MascotHelper
  3. def mascot_url
  4. full_asset_url(instance_presenter.mascot&.file&.url || asset_pack_path('media/images/elephant_ui_plane.svg'))
  5. end
  6. private
  7. def instance_presenter
  8. @instance_presenter ||= InstancePresenter.new
  9. end
  10. end