Sha256: 424f7d3d3c13df032fbeed6d0801134d023648b2781d8c5548763a3f98b76344
Contents?: true
Size: 327 Bytes
Versions: 1
Compression:
Stored size: 327 Bytes
Contents
<% module_namespacing do -%> class <%= class_name %>Notifier < ApplicationNotifier use :slack def success(recipient) record = recipient notify_success("#{record} has successfully created.") end def failure(recipient) record = recipient notify_failure("#{record} cannot created.") end end <% end -%>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pubsub_notifier-0.1.0 | lib/generators/rails/templates/notifier.rb |