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
You can see on User model ( https://github.com/ging/social_stream/blob/master/base/app/models/user.rb#L8 ) there are several has_many association.
In the find_or_create_for_facebook_oauth method there are a User and Authentication method create.
https://github.com/ging/social_stream/blob/master/base/app/models/user.rb#L118