From: Tiago Franco <[email protected]> Subject: [Hobo Users] Lifecycle in Hobo 3 Date: Tue, 18 Jan 2011 22:26:14 +0000
> When I try to create a model in the console with: > > CreditTransaction::Lifecycle.request User.first > > I get the following error: > > ActiveRecord::AssociationTypeMismatch: User expected, got User It's an issue of 1.3.0pre. Sometimes "User" means Hobo::Model::User, not your User. Try replacing "User" with "::User": - create :request, :available_to => "User", + create :request, :available_to => "::User", ----- Tomoaki Hayasaka <[email protected]> -- 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.
