Skip to content

Commit

Permalink
rails g noticed:notification NewTweetNotification
Browse files Browse the repository at this point in the history
  • Loading branch information
toshimaru committed Apr 16, 2021
1 parent 469a93d commit b046b97
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions app/notifications/new_tweet_notification.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# frozen_string_literal: true

# To deliver this notification:
#
# NewTweetNotification.with(post: @post).deliver_later(current_user)
# NewTweetNotification.with(post: @post).deliver(current_user)

class NewTweetNotification < Noticed::Base
# Add your delivery methods
#
# deliver_by :database
# deliver_by :email, mailer: "UserMailer"
# deliver_by :slack
# deliver_by :custom, class: "MyDeliveryMethod"

# Add required params
#
# param :post

# Define helper methods to make rendering easier.
#
# def message
# t(".message")
# end
#
# def url
# post_path(params[:post])
# end
end

0 comments on commit b046b97

Please sign in to comment.