Displaying 20 results from an estimated 7000 matches similar to: "Setting a callback whose action depends on the previous state of the object"
2008 Jan 07
2
acts_as_state_machine override :initial state
Hello,
I''m not sure if this is where to post this, but i cannot find much
information/support for acts_as_state_machine.
I have a Friendship model which implements acts_as_state_machine. I
have an :initial state of :pending, but i would like to create a
Friendship model and save it directly with :accepted status.
I have tried Friendship.create(:state => "accepted") and
2008 Oct 28
7
aasm callback order?
Hello!
Sometime ago I ran across a webpage where someone had identified the
full callback sequence for an object lifecycle including AASM with
it''s :enter and :exit and whatnot callbacks. Unfortunately, I can''t
find it and searches don''t seem to help.
Does anyone have a reference to a page that shows the callback
sequence with Acts As State Machine (the gem)?
I think
2008 Jan 23
1
acts_as_state_machine doesn't error on invalid state transition?
While using acts_as_state_machine, I noticed it doesn''t error when invalid
state transition is used. No false return, no exception. By invalid state
transition, I mean utilizing an event that does not define the current state
as a ''from'' state. Does anyone find this lacking? I would like to be able
to catch invalid state transition (such as attempting to fulfill a
2008 Feb 28
2
random exception driving me crazy: SecurityError (Insecure: can't modify array)
Hi all, I''m running into a very strange but incredibly annoying
problem that I just can''t seem to solve.
The exception is occurring from a seemingly innocuous line in my code,
a simple ''logger.warn("some debug information")''. The backtrace
follows:
SecurityError (Insecure: can''t modify array)
2006 Jul 13
2
having a problem with acts_as_state_machine
Hi all:
Below is s a dump from script/console in development env.
Am I not supposed to be able to find the record later and use the
state machine functionality, or have I missed something? Thanks
Forrest
----------------------------
>> ts2 = TalkSession.create( :person_id => 2, :pattern_id => 2)
=> #<TalkSession:0x35811f0 @attributes={"pattern_id"=>2,
2008 Sep 08
2
Restful Authentication and State Machine state transfer question
I''m adding some code to a project using restful_authentication and
acts_as_statemachine
In the create method for a user there is the following code generated
by the restful_authentication template
@user.regster! if user.valid?
And this will save and the user record if it is valid. I understand
that the statemachine will then change the state from passive to
pending. It will guard
2008 Aug 25
1
acts_as_state_machine: SecurityError calling insecure method
(also posted on rails forum:
http://railsforum.com/viewtopic.php?id=21744, then I discovered this
lilst and there are many more people...)
Hi, since yesterday I suddenly recieve lots of such messages in my
logfiles - and everything in the user model that uses that plugin fails!
My deployed Rails code hasn''t changeed in 5 days, and those errors
started to appear only a day ago.
2009 Feb 20
2
[LLVMdev] libLTO warning
Hi all,
I just svn-updated the 2.5 branch on my machine and I noticed this warning
during the build.
*** Warning: Linking the shared library
/home/maurice/installation/llvm/Debug/lib/libLTO.la against the non-libtool
*** objects /home/maurice/installation/llvm/Debug/lib/LLVMCppBackend.o
/home/maurice/installation/llvm/Debug/lib/LLVMMSIL.o
/home/maurice/installation/llvm/Debug/lib/LLVMCBackend.o
2009 Feb 20
0
[LLVMdev] libLTO warning
Maurice Gittens wrote:
> Hi all,
>
> I just svn-updated the 2.5 branch on my machine and I noticed this
> warning during the build.
>
> *** Warning: Linking the shared library
> /home/maurice/installation/llvm/Debug/lib/libLTO.la against the non-libtool
> *** objects /home/maurice/installation/llvm/Debug/lib/LLVMCppBackend.o
>
2009 Mar 25
0
[LLVMdev] llvm-2.5 build failure (fedora f10)
Hello, Neal
> You may want to note that you need glibc-devel.i386 to build. Otherwise you
> get error on /usr/include/gnu/stubs-32.h missing.
Do you have pure 64 bit system?
--
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University
2009 Mar 25
3
[LLVMdev] llvm-2.5 build failure (fedora f10)
You may want to note that you need glibc-devel.i386 to build. Otherwise you
get error on /usr/include/gnu/stubs-32.h missing.
2009 Mar 25
2
[LLVMdev] llvm-2.5 build failure (fedora f10)
Hi all,
On my Fedora 10 x86-64 the current svn dies in the following way:
/home/maurice/installation/llvm-dev/utils/TableGen/Debug/TGLexer.o: In
function `llvm::TGLexer::getNextChar()':
/home/maurice/installation/llvm-dev/utils/TableGen/TGLexer.cpp:71: undefined
reference to `llvm::TGSourceMgr::FindBufferContainingLoc(llvm::TGLoc) const'
2008 Jul 11
4
b44 module probe error
Dear All,
I''m trying to configure Xen on a laptop with a BCM4401 ethernet board
The Debian xen kerner 2.6.18-5 is not handling wlll that board
I get the follwing in messages
b44: Probe failed with error -5
Any help is welcome
Regards
Maurice
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
2003 Aug 13
4
Levene test of homogeneity of variance
Has the Levene test of homogeneity of variance been implemented in any
library in R?
Thanks,
Maurice Haynes
National Institute of Child Health and Human Development
Child and Family Research Section
6705 Rockledge Drive
Bethesda, MD 20892
Voice: 301-496-8180
Fax: 301-496-2766
E-Mail: mh192j at nih.gov
2011 Jul 31
4
[LLVMdev] high bit of function address set incorrectly?
Hi,
I recently updated to current llvm svn and fixed-up the minor compiler
errors I encountered.
However, at run-time even my Hello world programs crash with a
segmentation fault.
A concrete program that crashes on my Linux x86_64 Fedora box is:
declare void @__ot_runtime_print_int(i8*, i32)
define void @main() {
entry:
call void @__ot_runtime_print_int(i8* null, i32 12)
br label %return
2010 Jan 16
2
predict.glm
Hi,
See below I reply your message for <https://stat.ethz.ch/pipermail/r-help/2008-April/160966.html>[R] predict.glm & newdata posted on Fri Apr 4 21:02:24 CEST 2008
You say it ##works fine but it does not: if you look at the length of yhat2, you will find 100 and not 200 as expected. In fact predict(reg1, data=x2) gives the same results as predict(reg1).
So I am still looking for
2008 Feb 11
6
Should I Test My Fixtures?
I have a number of fixtures in my test suite. For example, with
acts_as_authenticated and acts_as_state_machine, I created a number of
users in different account states for use in functional testing.
(Suspended users can not log in, etc)
Is it a good idea to run fixtures through tests to ensure that they
conform to their ideals?
EG: assert users(:suspended_user).suspended?
If so, where should
2006 Apr 16
2
Making requests in order
Hello all,
This is an interesting problem I have been working on. What I have is a
little multiuser project request tracking application. What happens is
that I log in and create projects and assign people to the projects.
Each project has steps associated with it, and the steps need to be done
in a certain order. Now, I have to request that the assigned person
perform each of the steps, and
2006 Mar 07
5
FXProgressDialog trouble
Hey all,
I''m having trouble with FXProgressDialog-- I''m trying to use it to show the
progress of a file upload..
I am running the upload in a separate thread that calls the dialog''s destroy
method when its done.. the dialog closes, but the application remains
non-responsive (as if its still in the execute loop). I''ve tried sending
ID_ACCEPT to the dialog with
2023 Jun 03
1
What could cause rsync to kill ssh?
Maurice R Volaski via rsync <maurice.volaski at lists.samba.org> wrote:
> I have an rsync script that it is copying one computer (over ssh)
> to a shared CIFS mount on Gentoo Linux, kernel 6.3.4. The script
> runs for a while and then at some point quits knocking my ssh
> session offline on all terminals and it blocks ssh from being able
> to connect again. Even restarting