Skip to content

Latest commit

 

History

History
47 lines (35 loc) · 762 Bytes

README.md

File metadata and controls

47 lines (35 loc) · 762 Bytes

Messages

Messaging system for the SP project.

Usage

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.

Installation

Add this line to your application's Gemfile:

gem 'messages'

And then execute:

$ bundle

Or install it yourself as:

$ gem install messages

Contributing

Contribution directions go here.

License

The gem is available as open source under the terms of the MIT License.