Class: Workarea::Storefront::ApplicationMailer

Inherits:
ApplicationMailer
  • Object
show all
Defined in:
app/mailers/workarea/storefront/application_mailer.rb

Instance Method Summary collapse

Instance Method Details

#path_to_url(path) ⇒ Object



12
13
14
15
# File 'app/mailers/workarea/storefront/application_mailer.rb', line 12

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