Sha256: f6485a4b2861db28b576d3f8651c8d368ac0e93ed3a4c85782da94b48dd9272c
Contents?: true
Size: 424 Bytes
Versions: 1
Compression:
Stored size: 424 Bytes
Contents
<% module_namespacing do -%> class <%= class_name %>Notifier < ApplicationNotifier use :logger # use :slack, channel: '#general', username: 'username', icon_emoji: ':grinning:' def success(recipient) notify_success("#{self.class}##{__method__} called with #{recipient.class}.") end def failure(recipient) notify_failure("#{self.class}##{__method__} called with #{recipient.class}.") end end <% end -%>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pubsub_notifier-0.1.2 | lib/generators/rails/templates/notifier.tt |