This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Reader.joins(:users).where("users.provider = ?", "facebook").each do |reader| | |
# if facebook user doesn't have another account | |
if reader.users.count == 1 | |
facebook_user = reader.users.first | |
puts "*** USER = " + facebook_user.email | |
# create an access | |
password = SecureRandom.hex | |
user = User.create(email: facebook_user.email, password: password, password_confirmation: password, provider: nil, name: facebook_user.name) | |
puts "*** CREATED USER : " + user.inspect | |
User.merge_users(user, facebook_user) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="books"> | |
<div class="book" style="height: unset;display: flex;flex-wrap: wrap;"> | |
<div class="sevenswitch-cover" style="flex: 1;"> | |
<img src="https://catalogue.immateriel.fr/resources/65/38/9b2e8897deb903c4348539219e8bce04047a4ec7f0ca367cd2097ebf6bff.jpg" width="112"> | |
</div> | |
<div class="sevenswitch-right-side" style="display: flex;flex-direction: column;justify-content:space-between;flex: 1;"> | |
<div class="sevenswitch-infos"> | |
<div class="sevenswitch-title" style="height: auto;font-weight: bold;line-height: 19px;font-size: 14px;">La détoxination par paliers</div> | |
<div class="sevenswitch-author" style="font-size: 12px;">Désiré Mérien</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am elodieailleaume on github. | |
* I am elodie_ailleaume (https://keybase.io/elodie_ailleaume) on keybase. | |
* I have a public key ASDSO_b6c4qi2IptjKdndQJrQxglPqW6UTN0Oh26KQxqEwo | |
To claim this, I am signing this object: |