On Mar 3, 12:18 am, "leei" <[EMAIL PROTECTED]> wrote:
> Well, I have a plugin called find_condition that I've had to
> monkeypatch AR for.
>
> With find_condition installed, any AR class that defines
> find_condition() as a class method will insert that condition into
> *any* find() on the class, whether it is direct or through an
> association from some other class.
>
> The direct reason for this is to allow me to implement my
> acts_as_invisible class, which conditionally hides rows of a table
> based on various conditions, generally if the current User is not in
> the group identified by the visible_to field.

Is this equivalent to creating role-driven views in the application,
rather then enforcing them with a view at the database level? Any
particular reason(s) why you did one over the other?


Zach



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" 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-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to