Hi, I have a legacy database that has a permission model that I needed to duplicate. Each "item" in the items table has an owner, and each user has a list of owners for which they are allowed to see items.
So, what I setup is a "conditions_for_collection on the items controller that injects a list of "owners" into the where clause. Essentially select * from items where owner IN (dennis, steve, john) AND other conditions. When in the owners controller, the default AS behavior is to list all items that belong to an owner (ignoring the conditions_for_collection setup in the items controller). Does the "beginning_of_chain" method work better or differently than the "conditions_for_collection"? Thanks. -- 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.
