mirror of
https://github.com/mastodon/mastodon.git
synced 2024-08-20 21:08:15 -07:00
Remove duplicate method def ApplicationHelper#instance_presenter
(#30331)
This commit is contained in:
parent
fc166d07f0
commit
a6d12299f2
3 changed files with 4 additions and 12 deletions
|
@ -240,6 +240,10 @@ module ApplicationHelper
|
||||||
EmojiFormatter.new(html, custom_emojis, other_options.merge(animate: prefers_autoplay?)).to_s
|
EmojiFormatter.new(html, custom_emojis, other_options.merge(animate: prefers_autoplay?)).to_s
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def mascot_url
|
||||||
|
full_asset_url(instance_presenter.mascot&.file&.url || frontend_asset_path('images/elephant_ui_plane.svg'))
|
||||||
|
end
|
||||||
|
|
||||||
def instance_presenter
|
def instance_presenter
|
||||||
@instance_presenter ||= InstancePresenter.new
|
@instance_presenter ||= InstancePresenter.new
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
# frozen_string_literal: true
|
|
||||||
|
|
||||||
module MascotHelper
|
|
||||||
def mascot_url
|
|
||||||
full_asset_url(instance_presenter.mascot&.file&.url || frontend_asset_path('images/elephant_ui_plane.svg'))
|
|
||||||
end
|
|
||||||
|
|
||||||
def instance_presenter
|
|
||||||
@instance_presenter ||= InstancePresenter.new
|
|
||||||
end
|
|
||||||
end
|
|
|
@ -5,7 +5,6 @@ class UserMailer < Devise::Mailer
|
||||||
|
|
||||||
helper :accounts
|
helper :accounts
|
||||||
helper :application
|
helper :application
|
||||||
helper :mascot
|
|
||||||
helper :formatting
|
helper :formatting
|
||||||
helper :instance
|
helper :instance
|
||||||
helper :routing
|
helper :routing
|
||||||
|
|
Loading…
Reference in a new issue