Sha256: 74bf5b32dc77aa03db449d60caf25ffa6a195e62daa2d307367cb8d6c817f6f0
Contents?: true
Size: 905 Bytes
Versions: 9
Compression:
Stored size: 905 Bytes
Contents
module MailManager module LayoutHelper def title(value=nil, locals={}) if value.nil? @page_title else @page_title = translate( value, locals) "<h1>#{@page_title}</h1>".html_safe end end def use_show_for_resources? ::MailManager.use_show_for_resources rescue # :nocov: shouldn't happen false # :nocov: end def show_title? return @show_title if defined? @show_title true rescue # :nocov: shouldn't happen false # :nocov: end def site_url ::MailManager.site_url rescue # :nocov: shouldn't happen "#{default_url_options[:protocol]||'http'}://#{default_url_options[:domain]}" # :nocov: end def translate(key, options={}) super(key, options.merge(raise: true)) rescue I18n::MissingTranslationData key end end end
Version data entries
9 entries across 9 versions & 1 rubygems