Skip to content
This repository has been archived by the owner on Nov 27, 2022. It is now read-only.

use room-specific user profile for message api refs #170 #195

Merged
merged 4 commits into from
Jul 5, 2014

Conversation

shimomura1004
Copy link
Member

No description provided.

@@ -29,6 +30,22 @@ def profile_for(room_id)
}
end

def find_or_create_profile_for(room_id)
self.user_profiles ||= []
room = Room.where(:_id => room_id)[0]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

first method is better rather than [0]

@mallowlabs
Copy link
Member

LGTM

@suer
Copy link
Member

suer commented Jul 5, 2014

LGTM

shimomura1004 added a commit that referenced this pull request Jul 5, 2014
use room-specific user profile for message api refs #170
@shimomura1004 shimomura1004 merged commit 75461a1 into codefirst:master Jul 5, 2014
@shimomura1004 shimomura1004 deleted the id/170 branch July 5, 2014 13:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants