Sha256: 11db7b631e9248088170ccd33c9401e292db2864a82f1587ae2b58512cd9b174
Contents?: true
Size: 462 Bytes
Versions: 15
Compression:
Stored size: 462 Bytes
Contents
module Maily module ApplicationHelper def title _title = 'Maily' if params[:mailer] && params[:email] _title << " - #{params[:mailer].humanize} | #{params[:email].humanize}" end _title end def sidebar_class(mailer, email) 'selected_mail' if mailer.name == params[:mailer] && email.name == params[:email] end def icon(name) image_tag "maily/icons/#{name}.svg", class: 'icon' end end end
Version data entries
15 entries across 15 versions & 1 rubygems