> > Is this a problem related to the change in pre31 (it worked in pre28)? > > Lots and lots of commits between pre28 ad pre31, so I think so. TBH I forgot the specific commit that may have caused that, I remember a couple of commits: one changing the User for UserBase, and another doing something else... you should take a look at the post related to the pre30 release and the commits (specially those related to some generators).
BTW, while you are at it, I would suggest you to use the git rails3 branch (which contain the still unreleased RC) in your app instead of the pre31 gem. Lots of fixes. ciao dd On Tue, May 10, 2011 at 4:11 PM, Ronny Hanssen <[email protected]>wrote: > I have just now upgraded my pre28 app to use pre31. I have renamed all User > references to UserBase where applicable, so I think that is ok. I however > get an error when the app tries to execute some of my custom code. The error > looks like this: > > wrong argument type User (expected Module) > > Extracted source (around line *#1*): > > 1: <index-page without-content-header without-new-link> > 2: <before-top-page-nav:> > 3: <job-scope-selectors/> > 4: <job-order-selector/> > > Rails.root: C:/dev/Flexy/DJBM2 > Application Trace <http://localhost:3000/jobs#> | Framework > Trace<http://localhost:3000/jobs#>| Full > Trace <http://localhost:3000/jobs#> > > hobo (1.3.0.pre31) lib/hobo/model/lifecycles/actions.rb:44:in `include?' > hobo (1.3.0.pre31) lib/hobo/model/lifecycles/actions.rb:44:in `publishable_by' > hobo (1.3.0.pre31) lib/hobo/model/lifecycles/actions.rb:53:in > `acting_user_is?' > hobo (1.3.0.pre31) lib/hobo/model/lifecycles/actions.rb:15:in > `available_to_acting_user?' > hobo (1.3.0.pre31) lib/hobo/model/lifecycles/actions.rb:103:in `can_run?' > hobo (1.3.0.pre31) lib/hobo/model/lifecycles/lifecycle.rb:147:in `block (2 > levels) in available_transitions_for' > hobo (1.3.0.pre31) lib/hobo/model/lifecycles/lifecycle.rb:147:in `select' > hobo (1.3.0.pre31) lib/hobo/model/lifecycles/lifecycle.rb:147:in `block in > available_transitions_for' > hobo (1.3.0.pre31) lib/hobo/model/permissions.rb:166:in `with_acting_user' > hobo (1.3.0.pre31) lib/hobo/model/lifecycles/lifecycle.rb:146:in > `available_transitions_for' > hobo (1.3.0.pre31) lib/hobo/model/lifecycles/lifecycle.rb:152:in > `publishable_transitions_for' > app/views/taglibs/application.dryml:233:in `block (3 levels) in > card__for_job_with_acb80d5b0f6a' > ... > > The actual code in application.dryml around line 233 looks like this: > > this.lifecycle.publishable_transitions_for(current_user).each do |t| > > Is this a problem related to the change in pre31 (it worked in pre28)? > > Regards, > Ronny > > -- > 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. > -- 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.
