Plugin issues with Rails 2.3.2

9 views
Skip to first unread message

bongoman

unread,
Jul 16, 2009, 6:21:50 AM7/16/09
to Rails Authorization Plugin
HI there

Just upgraded a Rails app from 2.1.0 to 2.3.2 and am getting undefined
method errors for 'has_targets' on an instance of a model that is
authorizable where 'target' is a role.

The strange thing is that in the console the method is there on an
instance of a model that is authorizable, but not in the view.

If I revert to 2.1.0, then all is OK again.

Any clues on this would be appreciated.

--
Richard

Glenn Rempe

unread,
Jul 17, 2009, 1:15:48 AM7/17/09
to Rails Authorization Plugin
Hi,

I don't have a specific solution to your problem, but the full test
suite passes using a vendor'ed rails 2.3.2. Perhaps you want to look
through this example code to see what you may have implemented
differently?

Do you see any of the same behavior in the test suite if you try to re-
produce?

http://github.com/grempe/rails-authorization-plugin-test/tree/master

Cheers,

Glenn

bongoman

unread,
Aug 1, 2009, 5:53:17 PM8/1/09
to Rails Authorization Plugin
Hi Glenn

I'm actually now getting uninitialized constant User::RolesUser errors
in my app

jeem

unread,
Aug 26, 2009, 12:20:04 PM8/26/09
to Rails Authorization Plugin
I'm have the same problem with with Rails 2.3.3. It looks like the
method_missing defined by acts_as_authorized_user is not being
called. Maybe some other method_missing is clobbering it and not
calling back up the chain. I will look into more if I have time. In
the meantime, I've replaced my is_manager_of calls with has_role
('manager'). These are still defined, so the mixin is still mixing
some.

Jim
Reply all
Reply to author
Forward
0 new messages