a guest Mar 16th, 2018 254 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- if User.find_by_username "guest" && !user
- user = User.find_by_username "guest"
- user ||= User.create!(:role => "guest", :username => "guest", :email => "email@example.com", :password => "secret", :password_confirmation => "secret")
RAW Paste Data