Show More
Commit Description:
moved root/roles creation from migration to seed.rb
Commit Description:
moved root/roles creation from migration to seed.rb
References:
File last commit:
Show/Diff file:
Action:
test/fixtures/users.yml
| 20 lines
| 369 B
| text/x-yaml
| YamlLexer
|
|
r0 | # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html | ||
|
r58 | |||
<% | ||||
User.public_class_method :encrypt | ||||
|
r275 | salt = "abc" | ||
|
r58 | %> | ||
john: | ||||
login: john | ||||
|
r275 | full_name: john | ||
hashed_password: <%= User.encrypt("hello",salt) %> | ||||
salt: <%= salt %> | ||||
|
r58 | mary: | ||
login: mary | ||||
|
r275 | full_name: mary | ||
hashed_password: <%= User.encrypt("goodbye",salt) %> | ||||
salt: <%= salt %> | ||||
|
r58 | roles: admin | ||