if you set a rule for an object with conditions for the parent, say:
can :update, Child, :parent => {:user_id => current_user.id}
adds a Join, which goes through the cancan_bridge up to AS
beginning_of_chain
making @record readonly (record is originated at find_if_allowed at
update.rb), and by that, disabling for update.
I was trying to find how to get rid of this. Rails people say that you
should avoid :joins and use :includes instead, or force :readonly => false.
But to force :readonly => false it will require to change that in the
global finder.rb which doesn't look like a good idea. I think. what do you
say?
cheers,
nano
--
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails plugin" 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/activescaffold?hl=en.