File: mailer.rb

package info (click to toggle)
ruby-roadie-rails 3.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,280 kB
  • sloc: ruby: 1,670; sh: 47; makefile: 4
file content (20 lines) | stat: -rw-r--r-- 386 bytes parent folder | download | duplicates (22)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# frozen_string_literal: true

class Mailer < ActionMailer::Base
  include Roadie::Rails::Mailer

  default from: "john@example.com"

  def normal_email
    roadie_mail(to: "example@example.org", subject: "Notification for you") do |format|
      format.html
      format.text
    end
  end

  private

  def roadie_options
    super.combine(url_options: {protocol: "https"})
  end
end