Created
October 20, 2010 19:34
-
-
Save matheusca/637136 to your computer and use it in GitHub Desktop.
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
ree-1.8.7-2010.02 > u = Usuario.first | |
=> #<Usuario _id: 4c96b0aa394eee1c69000005, encrypted_password: "$2a$10$iScHwrkPh6UbJu6S4167JeRmcezHslFRmfolTe7COqoJknHUZsYQK", created_at: Mon Sep 20 00:54:02 UTC 2010, last_sign_in_ip: "127.0.0.1", updated_at: Wed Oct 20 19:28:04 UTC 2010, last_sign_in_at: Mon Sep 20 00:55:12 UTC 2010, sign_in_count: 3, permissao: ["Noticia"], password_salt: "$2a$10$iScHwrkPh6UbJu6S4167Je", current_sign_in_ip: "127.0.0.1", reset_password_token: nil, remember_token: nil, current_sign_in_at: Tue Oct 19 23:59:39 UTC 2010, remember_created_at: nil, email: "admin@admin.com.br"> | |
ree-1.8.7-2010.02 > u.sites << Site.new(:site => 'localhost', :theme => 'default') | |
=> [#<Site _id: 4cbf4393394eee19ef000009, theme: "default", site: "localhost">] | |
ree-1.8.7-2010.02 > u.save | |
=> true | |
ree-1.8.7-2010.02 > Usuario.first.sites | |
=> [] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment