mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
15 lines
594 B
Ruby
15 lines
594 B
Ruby
namespace :one_off do
|
|
desc "Create a notification for all users telling them about the new notifications"
|
|
task notifications_announcement: :environment do
|
|
User.all.find_each do |user|
|
|
user.notifications.create(
|
|
message_html: '<div>A new feature is now available:</div><div class="blue-text text-darken-3">Notifications on Notebook.ai</div>',
|
|
icon: 'favorite',
|
|
icon_color: 'red',
|
|
happened_at: DateTime.current,
|
|
passthrough_link: 'https://medium.com/indent-labs/notifications-on-notebook-ai-693544b676cb'
|
|
)
|
|
end
|
|
end
|
|
end
|