Fix user received_messages error.
Merge pull request #234 from t-bullock/received-messages-rails4

Fix user received_messages error.