On Lunes, 17 de Mayo de 2010 16:21:24 Benjamin Adler escribió:
> Sergio,
>
> what you say makes a lot of sense and helped me understand AS security.
> I wanted to edit the wiki to include some of what you said, but it
> currently states:
>
> All methods are defined on the instance level (e.g. def
> authorized_for_update?, not def self.authorized_for_update?).
>
> Didn't you tell me authorized_for_create? must be a class method? Thats
> why I defined it as "def self.authorized_for_create?". Should I update
> the wiki?
I forgot to update wiki when I merged security branch, so wiki is outdated. It
would be great you update the wiki. Documentation about
authorized_for_#{action} is missing, and tip about existing_record_check? is
outdated, because now there are class and instance methods.
--
Sergio Cambra .:: entreCables S.L. ::.
Mariana Pineda 23, 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) [email protected]
--
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.