Added ability to send private messages.
This commit is contained in:
parent
e4c394d881
commit
843e4a7233
3 changed files with 11 additions and 4 deletions
|
|
@ -21,6 +21,7 @@ class Message < ActiveRecord::Base
|
|||
|
||||
named_scope :pending, :conditions => { :email_state => 0 }
|
||||
named_scope :sent, :conditions => { :email_state => 1 }
|
||||
named_scope :public, :conditions => {:private => false}
|
||||
|
||||
# Values for the email_state attribute: :none, :pending, :sent, :failed
|
||||
EMAIL_STATE = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue