All,

I wanted to use a standard AS security method to handle hiding action 
links on a per-record basis.

It didn't look like this was supported at all, but after perusing 
_list_actions.rhtml, I saw this line:

  params[:the_as_record] = record

and this is accessible in my security method as the actual record in 
question, so I can put params[:the_as_record] in my security method and 
inspect the record for a given row to see if the link should be presented.

Is this the best (only) way to per-object action link security methods 
in AS?

Thanks,
Wes

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to