Guest User

Untitled

a guest
Jun 16th, 2018
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. User.class_eval do
  2. random_schema :password => proc { String.random }, :email => proc { Email.random.to_s }, :identity => proc { |u| IdentityTable.random(:user => u) }, :admin => proc { false },
  3. :remember_token => proc { nil } do |u|
  4. u.password_confirmation = u.password
  5. end
  6. end
Add Comment
Please, Sign In to add comment