You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
285 B

  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