mascot_helper.rb 274 B

1234567891011
  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. def instance_presenter
  7. @instance_presenter ||= InstancePresenter.new
  8. end
  9. end