Sha256: 89975924e44f63438f10d0a48cb620bd8233b96b6ed035fcc1cbef351c03ece6

Contents?: true

Size: 607 Bytes

Versions: 34

Compression:

Stored size: 607 Bytes

Contents

module Workarea
  module Storefront
    class ApplicationMailer < Workarea::ApplicationMailer
      layout 'workarea/storefront/email'
      helper_method :path_to_url
      before_action :set_config

      add_template_helper ActionView::Helpers::AssetUrlHelper
      add_template_helper Workarea::DetailsHelper

      def path_to_url(path)
        protocol = Rails.application.config.force_ssl ? 'https' : 'http'
        "#{protocol}://#{Workarea.config.host}/#{path.sub(/^\//, '')}"
      end

      private

      def set_config
        @config = Workarea.config.email_theme
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
workarea-storefront-3.4.45 app/mailers/workarea/storefront/application_mailer.rb
workarea-storefront-3.4.44 app/mailers/workarea/storefront/application_mailer.rb
workarea-storefront-3.4.43 app/mailers/workarea/storefront/application_mailer.rb
workarea-storefront-3.4.42 app/mailers/workarea/storefront/application_mailer.rb
workarea-storefront-3.4.41 app/mailers/workarea/storefront/application_mailer.rb
workarea-storefront-3.4.40 app/mailers/workarea/storefront/application_mailer.rb
workarea-storefront-3.4.39 app/mailers/workarea/storefront/application_mailer.rb
workarea-storefront-3.4.38 app/mailers/workarea/storefront/application_mailer.rb
workarea-storefront-3.4.37 app/mailers/workarea/storefront/application_mailer.rb
workarea-storefront-3.4.36 app/mailers/workarea/storefront/application_mailer.rb
workarea-storefront-3.4.35 app/mailers/workarea/storefront/application_mailer.rb
workarea-storefront-3.4.34 app/mailers/workarea/storefront/application_mailer.rb
workarea-storefront-3.4.33 app/mailers/workarea/storefront/application_mailer.rb
workarea-storefront-3.4.32 app/mailers/workarea/storefront/application_mailer.rb
workarea-storefront-3.4.31 app/mailers/workarea/storefront/application_mailer.rb
workarea-storefront-3.4.30 app/mailers/workarea/storefront/application_mailer.rb
workarea-storefront-3.4.29 app/mailers/workarea/storefront/application_mailer.rb
workarea-storefront-3.4.28 app/mailers/workarea/storefront/application_mailer.rb
workarea-storefront-3.4.27 app/mailers/workarea/storefront/application_mailer.rb
workarea-storefront-3.4.26 app/mailers/workarea/storefront/application_mailer.rb