I hereby claim:
- I am iszak on github.
- I am iszak (https://keybase.io/iszak) on keybase.
- I have a public key ASCt2Gx0Jn9iKbXKcWzw8TD4EMD1yWklizCRqlsVcDB2BQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
class GamesController < ApplicationController | |
def new | |
@game = Game.new | |
@game.field = Array.new(64).map{ rand(1..8) }.join | |
unless session[:client].nil? or session[:client].length != 32 | |
@game.vplayer = session[:client] | |
else | |
@game.vplayer = SecureRandom.hex(16) | |
session[:client] = @game.vplayer | |
end |
{ | |
"id": 1, | |
"name": "editor", | |
"isActive": false, | |
"permissions": [ | |
{ | |
"id": 1, | |
"name": "create post", | |
"isSelected": false, | |
"section": { |