File: delivery_method.rb.tt

package info (click to toggle)
ruby-noticed 3.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 324 kB
  • sloc: ruby: 1,186; makefile: 4
file content (14 lines) | stat: -rw-r--r-- 428 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class DeliveryMethods::<%= class_name %> < ApplicationDeliveryMethod
  # To use this delivery method, specify the class option in your notifier.
  #
  #   class MyNotifer < ApplicationNotifier
  #     deliver_by :<%= file_path %>, class: "<%= class_name %>"
  #   end

  # Specify required options for the deliver_by config block
  # required_options :foo, :bar

  def deliver
    # Logic for sending the notification
  end
end