mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-25 12:01:03 +00:00
Fixing Tests
This commit is contained in:
parent
aef90cb0bf
commit
d601d8643f
1 changed files with 5 additions and 1 deletions
|
@ -229,7 +229,11 @@ class User < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def received_messages
|
||||
received_personal_messages + team.received_messages
|
||||
received_personal_messages + received_team_messages
|
||||
end
|
||||
|
||||
def received_team_messages
|
||||
Message.where(recipient_id: team_id, recipient_type: 'Team' )
|
||||
end
|
||||
|
||||
def sent_messages
|
||||
|
|
Loading…
Reference in a new issue