Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- User.class_eval do
- random_schema :password => proc { String.random }, :email => proc { Email.random.to_s }, :identity => proc { |u| IdentityTable.random(:user => u) }, :admin => proc { false },
- :remember_token => proc { nil } do |u|
- u.password_confirmation = u.password
- end
- end
Add Comment
Please, Sign In to add comment