Go to http://api.rubyonrails.org/ read about ActiveRecord::Callbacks
See also restful_authentication gem and simple_access_control plugin -
use them both.
On Mar 1, 12:34 pm, Evan
<evancha...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> In a model are there any methods that are called before providing
> access to the model?
>
> I''m exploring ways to enforce privileges in my app. Wondering if I
can
> define some sort of "before" method in the model to prevent read
> access to the model unless certain conditions are true.
>
> Thanks.
>
> Evan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---