From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.229.96.67 with SMTP id g3csp7675qcn; Sat, 26 May 2012 02:48:11 -0700 (PDT) Return-Path: Received-SPF: pass (google.com: domain of rack-devel+bncCOa17OD_GxDbzYL-BBoEZcb-pQ@googlegroups.com designates 10.50.95.136 as permitted sender) client-ip=10.50.95.136; Authentication-Results: mr.google.com; spf=pass (google.com: domain of rack-devel+bncCOa17OD_GxDbzYL-BBoEZcb-pQ@googlegroups.com designates 10.50.95.136 as permitted sender) smtp.mail=rack-devel+bncCOa17OD_GxDbzYL-BBoEZcb-pQ@googlegroups.com; dkim=pass header.i=rack-devel+bncCOa17OD_GxDbzYL-BBoEZcb-pQ@googlegroups.com Received: from mr.google.com ([10.50.95.136]) by 10.50.95.136 with SMTP id dk8mr1132655igb.0.1338025691262 (num_hops = 1); Sat, 26 May 2012 02:48:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=x-beenthere:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type; bh=o0AOdt7XWAmRxeZepLlk7FRjWho9smyiwgl4OaL0S9o=; b=oNa6UCLzotH6aoHygONAnmTDxWBKM4lDT+m4dtb74sDnZ5Mx0czJ+WxyyNnCQ+Fc3c TO+aQGc9tCOT0aJqAQ5jyBHLohWrpzK+5uV3a+tW6SBMtLJkLfZUw02kbntUtw2igyCm FP1BmGv/YghIlSAOUxhLZjnnNewcfqVHGYkq4= Received: by 10.50.95.136 with SMTP id dk8mr144517igb.0.1338025691196; Sat, 26 May 2012 02:48:11 -0700 (PDT) X-BeenThere: rack-devel@googlegroups.com Received: by 10.50.202.5 with SMTP id ke5ls283423igc.2.gmail; Sat, 26 May 2012 02:48:09 -0700 (PDT) Received: by 10.50.179.36 with SMTP id dd4mr690086igc.1.1338025689758; Sat, 26 May 2012 02:48:09 -0700 (PDT) Received: by 10.50.87.229 with SMTP id bb5msigb; Sat, 26 May 2012 02:39:10 -0700 (PDT) Received: by 10.68.239.138 with SMTP id vs10mr347528pbc.19.1338025149530; Sat, 26 May 2012 02:39:09 -0700 (PDT) Date: Sat, 26 May 2012 02:39:08 -0700 (PDT) From: armanx To: rack-devel@googlegroups.com Message-Id: <7274e9f9-adb2-4f84-bbf7-84538ddd3922@googlegroups.com> Subject: "singleton can't be dumped" error when storing an object in session MIME-Version: 1.0 X-Original-Sender: armanx@gmail.com Reply-To: rack-devel@googlegroups.com Precedence: list Mailing-list: list rack-devel@googlegroups.com; contact rack-devel+owners@googlegroups.com List-ID: X-Google-Group-Id: 486215384060 List-Post: , List-Help: , List-Archive: Sender: rack-devel@googlegroups.com List-Subscribe: , List-Unsubscribe: , Content-Type: multipart/alternative; boundary="----=_Part_970_7338946.1338025148801" ------=_Part_970_7338946.1338025148801 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hello everyone, I'm using Rack::Session::Cookie to store an object (a Sequel model returned by a database call) in the session. However, I'm getting a "singleton can't be dumped" error when trying to do so. What is the reason for this error? The interesting thing is, I only get the error when the Sequel object is first saved in the database then returned; the error is absent when the record already exists in the database and is returned via select (without saving), yet in both cases the objects/classes are identical. ------=_Part_970_7338946.1338025148801 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit Hello everyone,

I'm using Rack::Session::Cookie to store an object (a Sequel model returned by a database call) in the session. However, I'm getting a "singleton can't be dumped" error when trying to do so. What is the reason for this error?

The interesting thing is, I only get the error when the Sequel object is first saved in the database then returned; the error is absent when the record already exists in the database and is returned via select (without saving), yet in both cases the objects/classes are identical.
------=_Part_970_7338946.1338025148801--