diff options
-rw-r--r-- | src/guff.cr | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/guff.cr b/src/guff.cr index 64c212e..8046af7 100644 --- a/src/guff.cr +++ b/src/guff.cr @@ -228,12 +228,12 @@ module Guff false end - def create(hash : Hash(String, String)) : String + def create(data : String) : String # generate id r = SecureRandom.hex(32) # save session - @sessions[r] = hash.to_json + @sessions[r] = data # return session id r @@ -285,7 +285,7 @@ module Guff def create(hash : Hash(String, String)) : String clear merge!(hash) - @session_id = @context.models.session.create(hash) + @session_id = @context.models.session.create(hash.to_json) end def save |