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.


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