one-click-orgs

https://github.com/oneclickorgs/one-click-orgs

Ruby

Create legal organisations with just one click

ApplicationController#show_notification_once

Show a one-off notification to a user, to notify of
a specific event happening.

With #show_notification_once, a notification of a given type (e.g. a 'convener_welcome' notification) will only be shown once
to a given user. If you want to show the notification regardless of whether the user has already seen it before,
use #show_notification instead.

As an exception to this, you can pass the ignore_earlier_than parameter. If this user has seen this type of notification
earlier than the timestamp you pass, the notification will be shown again.

Source | Google | Stack overflow

Edit

git clone [email protected]:oneclickorgs/one-click-orgs.git

cd one-click-orgs

open app/controllers/application_controller.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-ApplicationController-show_notification_once-for-pr


# Commit to git

git add app/controllers/application_controller.rbgit commit -m "better docs for ApplicationController#show_notification_once"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-ApplicationController-show_notification_once-for-pr

hub pull-request


# Celebrate!