a guest Mar 16th, 2018 243 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 => "firstname.lastname@example.org", :password => "secret", :password_confirmation => "secret")
RAW Paste Data