Sha256: 86ea09d601898a6ac3283f36c20dc0173a47cc74affab31189354ea89bfe1c15

Contents?: true

Size: 671 Bytes

Versions: 28

Compression:

Stored size: 671 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
      add_template_helper Workarea::Storefront::SchemaOrgHelper

      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

28 entries across 28 versions & 1 rubygems

Version Path
workarea-storefront-3.5.27 app/mailers/workarea/storefront/application_mailer.rb
workarea-storefront-3.5.26 app/mailers/workarea/storefront/application_mailer.rb
workarea-storefront-3.5.25 app/mailers/workarea/storefront/application_mailer.rb
workarea-storefront-3.5.23 app/mailers/workarea/storefront/application_mailer.rb
workarea-storefront-3.5.22 app/mailers/workarea/storefront/application_mailer.rb
workarea-storefront-3.5.21 app/mailers/workarea/storefront/application_mailer.rb
workarea-storefront-3.5.20 app/mailers/workarea/storefront/application_mailer.rb
workarea-storefront-3.5.19 app/mailers/workarea/storefront/application_mailer.rb
workarea-storefront-3.5.18 app/mailers/workarea/storefront/application_mailer.rb
workarea-storefront-3.5.17 app/mailers/workarea/storefront/application_mailer.rb
workarea-storefront-3.5.16 app/mailers/workarea/storefront/application_mailer.rb
workarea-storefront-3.5.15 app/mailers/workarea/storefront/application_mailer.rb
workarea-storefront-3.5.14 app/mailers/workarea/storefront/application_mailer.rb
workarea-storefront-3.5.13 app/mailers/workarea/storefront/application_mailer.rb
workarea-storefront-3.5.12 app/mailers/workarea/storefront/application_mailer.rb
workarea-storefront-3.5.11 app/mailers/workarea/storefront/application_mailer.rb
workarea-storefront-3.5.10 app/mailers/workarea/storefront/application_mailer.rb
workarea-storefront-3.5.9 app/mailers/workarea/storefront/application_mailer.rb
workarea-storefront-3.5.8 app/mailers/workarea/storefront/application_mailer.rb
workarea-storefront-3.5.7 app/mailers/workarea/storefront/application_mailer.rb