I just tried the different options mentioned in the manual.

So, when using "User", how do you use can_submit? then?

Example:
create :submit, :params => [:name],:available_to => "User", :become
=> :new

With Test:
Fu::Lifecycle.can_submit?(Guest.new).should be_false

Results in:
wrong argument type Guest (expected Module)


On Nov 22, 7:06 pm, Tom Locke <[EMAIL PROTECTED]> wrote:
> > Whats the difference of the arguments for :available_to on a
> > transition, vs. :available_to on a creator?
> > Seems as if an argument of "User" doesn't work on a transition.
>
> In the pastie you have User, not "User" (missing quotes) - that looks  
> like the problem.
>
> In general you want to avoid mentioning class constants in your model  
> declarations, as you can get into cyclic dependencies and your models  
> wont load. That's why active-record uses :class_name and not :class
>
> Tom
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to