UNotifier
Installation
Add this line to your application's Gemfile:
gem 'unotifier'
And then execute:
$ bundle
Or install it yourself as:
$ gem install unotifier
Usage
To store your notifications in database UNotifier uses provided ActiveRecord model. It must have the next attributes:
id- requiredkey- requiredtarget- requiredtitle- requiredbody- optionalautohide_delay- optionallink- optional
target is a user or any other notification reciever entity. It also must provide several attributes:
loginonline?- to determine whether to send onsite or external notificationlocale- to send proper locale to I18n
Contributing
Bug reports and pull requests are welcome on GitLab at https://gitlab.com/hodlhodl-public/unotifier.