Attributes nil during view_permitted?
Reported by Tom Locke | July 20th, 2009 @ 05:53 PM | in Hobo 1.0 - Final
From hobousers
I have a many to many association with :accessible => true.
When
trying to edit the other end view_permitted? gets called for
the
target of the association with the object not having any
attributes
instantiated:
(rdb:20) p self
nil, user_id: nil>
Then on the next invocations it does have the attributes
instantiated
to the objects that are associated with the object being
edited.
Anyone know what's going on here or is this a bug?
Comments and changes to this ticket
-
Tom Locke July 20th, 2009 @ 05:53 PM
- State changed from new to open
-
Bryan Larsen November 23rd, 2009 @ 08:17 PM
- State changed from open to resolved
(from [e2976ee734d47bf0968f96e168b2cacd2393e55e]) [#470 state:resolved] [#468 state:resolved]
attributes nil during view_permitted? on new object
http://github.com/tablatom/hobo/commit/e2976ee734d47bf0968f96e168b2...
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
People watching this ticket
Referenced by
- 470 view_permitted? gets called with no attributes set during create actions (from [e2976ee734d47bf0968f96e168b2cacd2393e55e]) [#470 s...
- 468 Attributes nil during view_permitted? (from [e2976ee734d47bf0968f96e168b2cacd2393e55e]) [#470 s...
- 470 view_permitted? gets called with no attributes set during create actions #448 and #468 may be related or have more info