No commit activity in last 3 years
No release in over 3 years
Sending Messages beetween users. Rails + Devise
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0

Runtime

>= 3.2.12
 Project Readme

private_messages

Sending Messages beetween users. Rails + Devise

Установка

Install gem:

gem "private_messages"

Migrations:

  1. Create Users

  2. Create Messages

For example:

def change
  # Messages
  create_table :messages do |t|
    t.integer   :sender_id
    t.integer   :recipient_id
    t.string    :subject
    t.text      :body
    t.datetime  :read_at
    t.integer   :parent_id
    t.integer   :lft
    t.integer   :rgt
    t.integer   :depth
    t.timestamps
  end

  add_index :messages, :sender_id
  add_index :messages, :recipient_id
end

Models:

user.rb:

has_private_messages

message.rb:

is_private_message

TODO: message controller include in engine (Possible?)