-
-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rails g noticed:notification NewTweetNotification
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |