Class: UserNotificationRenderer

Inherits:
ActionView::Base
  • Object
show all
Includes:
ApplicationHelper, EmailHelper, UserNotificationsHelper
Defined in:
app/services/user_notification_renderer.rb

Constant Summary collapse

LOCK =
Mutex.new

Class Method Summary collapse

Methods included from EmailHelper

#email_html_template, #email_topic_link, #mailing_list_topic, #mailing_list_topic_text, #private_topic_title

Methods included from UserNotificationsHelper

#correct_top_margin, #digest_custom, #digest_custom_html, #digest_custom_text, #email_excerpt, #email_image_url, #first_paragraphs_from, #format_for_email, #html_site_link, #indent, #logo_url, #normalize_name, #show_image_with_url, #show_name_on_post, #show_username_on_post, #url_for_email

Methods included from GlobalPath

#cdn_path, #cdn_relative_path, #full_cdn_url, #path, #upload_cdn_path

Methods included from ApplicationHelper

#add_resource_preload_list, #admin?, #age_words, all_connectors, #allow_plugins?, #allow_third_party_plugins?, #application_logo_dark_url, #application_logo_url, #authentication_data, #body_classes, #build_plugin_html, #can_sign_up?, #category_badge, #client_side_setup_data, #crawlable_meta_data, #crawler_layout?, #current_homepage, #customization_disabled?, #dark_color_scheme?, #dark_scheme_id, #discourse_color_scheme_stylesheets, #discourse_config_environment, #discourse_csrf_tags, #discourse_preload_color_scheme_stylesheets, #discourse_stylesheet_link_tag, #discourse_stylesheet_preload_tag, #discourse_theme_color_meta_tags, #escape_unicode, extra_body_classes, #format_topic_title, #ga_universal_json, #get_absolute_image_url, #google_tag_manager_json, #google_tag_manager_nonce_placeholder, #google_universal_analytics_json, #gsub_emoji_to_unicode, #guardian, #html_classes, #html_lang, #include_crawler_content?, #include_ios_native_app_banner?, #include_splash_screen?, #ios_app_argument, #ios_device?, #is_brotli_req?, #is_gzip_req?, #loading_admin?, #login_path, #manifest_url, #mobile_device?, #mobile_view?, #moderator?, #modern_mobile_device?, #normalized_safe_mode, #preload_script, #preload_script_url, #preloaded_json, #render_sitelinks_search_tag, #replace_plugin_html, #rss_creator, #rtl?, #scheme_id, #script_asset_path, #server_plugin_outlet, #shared_session_key, #short_date, #staff?, #stylesheet_manager, #text_size_class, #theme_id, #theme_js_lookup, #theme_lookup, #theme_translations_lookup, #topic_featured_link_domain, #waving_hand_url, #with_format

Methods included from ConfigurableUrls

#faq_path, #privacy_policy_url, #tos_url

Methods included from CanonicalURL::Helpers

#canonical_link_tag

Methods included from CurrentUser

#clear_current_user, #current_user, has_auth_cookie?, #is_api?, #is_user_api?, #log_off_user, #log_on_user, lookup_from_env, #refresh_session

Class Method Details

.render(*args) ⇒ Object



10
11
12
13
14
15
16
17
18
# File 'app/services/user_notification_renderer.rb', line 10

def self.render(*args)
  LOCK.synchronize do
    @instance ||=
      UserNotificationRenderer.with_empty_template_cache.with_view_paths(
        Rails.configuration.paths["app/views"],
      )
    @instance.render(*args)
  end
end