0

I'm trying social_stream gem (https://github.com/ging/social_stream). It uses devise gem for user registration. When I register a new user on social_stream, it creates new records in several tables. I checked the code in social stream, the registration method is not overrided. So I'm totally lost. I can't find how new records are inserted in the other tables except user table. There are several new records inserted into the following tables: channels, actors, profile, activity_objects, relations, permissions. But I can't find the connection between users to these tables.

Can anyone help me to point out how social stream works when new user register?

Thank you

4

2 に答える 2

0

ユーザー モデル ( https://github.com/ging/social_stream/blob/master/base/app/models/user.rb#L8 ) でいくつかの has_many 関連付けがあることがわかります。

find_or_create_for_facebook_oauth メソッドには、ユーザーと認証メソッドの作成があります。

https://github.com/ging/social_stream/blob/master/base/app/models/user.rb#L118

于 2012-03-16T09:27:50.277 に答える