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 <[email protected]> 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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to