similar to: "singleton can't be dumped," but not using singleton

Displaying 20 results from an estimated 500 matches similar to: ""singleton can't be dumped," but not using singleton"

2007 Mar 06
15
mocking missing methods
Hi folks. So I''m using mocha on a ruby project, and I really like it. One thing I''ve noticed is that it can be a bit "surprising" when I''m mocking methods that don''t exist on an object, and I think there''s an easyish fix. At the moment, you use sheep = mock() to create a mock sheep. What I''d like to do is something like sheep =
2006 Apr 04
0
Session-Problem: singleton can''t be dumped
Hello, after having changed the session store from CGI::Session::DRbStore to CGI::Session::ActiveRecordStore, I keep getting an error which says: singleton can''t be dumped However, my session object is not a singleton. Does anybody know what causes this error? I can also post the full stack trace, if required. Greetings Michael Kastner
2010 Jun 29
0
singleton can't be dumped in rails session
Hi, I am doing an integration with commission junction using SOAP to get the result. It is working fine for me. My problem is I have to add the pagination so I have used will_paginate for pagination. For each page I am doing a call to commission junction and getting the result which make a performance bottleneck for my application. To solve this I have decided to store the response in session and
2007 Jun 08
0
SimplaTable with error: singleton can't be dumped
Hello, My first PDF report from rails. When i try to render "tab.render_on(pdf)", I get that error message. Thanks any help, Helder ================================================================= TypeError in ContasController#plano singleton can''t be dumped RAILS_ROOT: script/../config/.. Application Trace | Framework Trace | Full Trace
2012 Sep 22
4
Class, Module, Object
>> reload! Reloading... => true >> puts Class < Module true => nil >> puts Module < Class false => nil >> puts Module < Object true => nil >> puts Object < Module false => nil >> Object.parent => Object The above indicates that the Class object instance inherits from the Module object instance and the Module object instance
2009 Mar 06
2
rake test:functionals -> Task not supported by ''
I have a Rails project in which I''ve been using "rake test" tasks with great success. At some point (there were a few changes in the interim), rake started aborting test tasks. Here is the dialog: === $ rake test:functionals (in /Users/fritza/myproject) rake aborted! Task not supported by '''' (See full trace by running task with --trace) === The separate
2006 Mar 12
2
Find all the methods on a object in an irb session?
How can I find all the methods on an object from withing irb? Thanks, Joe
2006 May 22
2
using Singleton with Prototype
Hello all. I''m writing my own object using prototype and I wonder how you write and call only one instance of class. Can anyone share his idea of singleton? thanks Gregor ---------------------------------------------------- Gdy nadchodzi przełomowy moment w historii, musisz zdecydować, po czyjej stronie będziesz. "X-Men: Ostatni bastion" - w kinach od 26 maja.
2006 Oct 16
0
MiddleMan singleton issue in start script
Hi all, I found this thread in the August backgroundrb-devel archives. >This means that in order to reference the new_worker method *in the >instance that is running in the drb server* you can''t do that >directly. In order to spawn other workers from within a worker I >would have to change the MiddleMan class to be a singleton. This way >you could grab the one instance of
2007 Mar 13
1
Opening the singleton class of mocked objects
I wrote a plugin [1] a while ago that lets me do validations on a single AR instance. Instead of defining validations in an AR class, I can define them on a AR instance''s singleton class: class << @video validates_presence_of :title end One of my specs mocks Video.find, and the above code is run on the mock object. When I run the spec, I get the expected undefined method
2006 Oct 31
0
PSARC/2006/289 Rationalized IFF_NOFAILOVER for IPMP Singleton
Author: meem Repository: /hg/zfs-crypto/gate Revision: 40aa11f97fc0148333e53145eebb12da7e84dec5 Log message: PSARC/2006/289 Rationalized IFF_NOFAILOVER for IPMP Singleton 6397456 IPMP needs to support *just* link-based failure detection with singleton Files: update: usr/src/cmd/cmd-inet/usr.lib/in.mpathd/mpd_main.c update: usr/src/cmd/cmd-inet/usr.lib/in.mpathd/mpd_tables.c update:
2006 Oct 16
4
Singleton Pattern in RoR
Hi all how can I implement the singleton patter in RoR? thanks -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this
2012 Mar 16
2
Singleton pattern
Hi all, I know it may not have much sense thinking about a Singleton Pattern in an R application which doesn't use any OOP facilities, however I'm curious to know if anybody faced the same issue. I've been googling but using "singleton pattern" as a key word leads to typical OOP languages like Java or C++ among others. So my problem is that I'd like to ensure some very
2008 May 07
2
Can I add a singleton action to @controller in a test?
All, I want to create a mock action to test a filter in a functional test, e.g.: # Simplified example def test_my_filter # Singleton action def @controller.foo assert # something end ActionController::Routing::Routes.draw do |map| map.connect '':controller/foo'', :action => ''foo'' end get :foo end My log files show that
2009 Oct 09
0
[LLVMdev] Is ExecutionEngine always meant to be a singleton?
On Oct 8, 2009, at 9:19 AM, Kenneth Uildriks wrote: > Right now, on X86, creating multiple ExecutionEngines in the same > process causes an assertion. > Yes. This is by design. > If it's supposed to always be a singleton, should there be a way to > get the process's ExecutionEngine instance? > I can't see why. You could make a server to process llvm code. >
2009 Oct 08
4
[LLVMdev] Is ExecutionEngine always meant to be a singleton?
Right now, on X86, creating multiple ExecutionEngines in the same process causes an assertion. If it's supposed to always be a singleton, should there be a way to get the process's ExecutionEngine instance? This would, among other things, allow "lli" to execute bitcode that itself uses the ExecutionEngine.
2006 Jul 01
1
Rdconv --type=Ssgm drops singleton keywords (PR#9051)
If an Rd file has only one keyword entry then the Splus sgm file made with Rdconv --type=SSgm has no keyword entries. To reproduce: Use prompt() to make a skeleton help file R> f<-function(x)log(1+x)-log1p(x) R> prompt(f) Created file named 'f.Rd'. Edit the file and move it to the appropriate directory. R> q() It has 2 \keyword entries in it
2010 Feb 04
0
[LLVMdev] Jit singleton
In eager compilation mode, I don't know of anything that would go wrong with having multiple JITs in the process. However, in lazy compilation mode, we need to map stub addresses to the JIT that knows how to compile them. Right now, that's done by looking up the static "TheJITResolver" variable and assuming it's the only JIT, but we could 1) use a static
2006 Jul 05
2
Serialized object behaves weird
Hi! I got a class named EinsatzFilter which I serialized to session. Before saving to session it works afterwards I keep getting the message: "undefined method `to_s'' for #<Person:0x38c6ab8>". "Person" is a from ActiveRecord::Base inherited class. Code: class EinsatzFilter include ApplicationHelper attr_reader :personen, :monat, :projekte, :kunde
2010 Feb 04
2
[LLVMdev] Jit singleton
Hi everyone ! If I call ExecutionEngine::createJIT (or EngineBuilder::create) more than one time, the second time fails on a assertion "Multiple JIT resolvers?". It seems that the JIT is designed to be a singleton in the process, and I was wondering if it was something mandatory. How hard will it be to make it a non-singleton object ? Is this a JIT-only problem (work needed on JIT