Messaging system for the SP project.
Add 'messageable' to model
class User
messageable
end
then call the message method
@user.message(
from: current_user,
subject: 'Project inquiry',
body: 'Sir, ...')
if the alert method from alerts module is present (or a similar interface) sending a message will automatically alert the receiving user.
Add this line to your application's Gemfile:
gem 'messages'
And then execute:
$ bundle
Or install it yourself as:
$ gem install messages
Contribution directions go here.
The gem is available as open source under the terms of the MIT License.