search for: deleted_id

Displaying 1 result from an estimated 1 matches for "deleted_id".

Did you mean: delete_if
2006 Aug 06
5
Return only results that user is allowed to see?
...ted_at IS NOT NULL and deleted_at < now()). Also, if a user is not an Admin, they should not be able to return results that have a certain value in a certain column, like forum_id != 13 (if 13 is an admin only forum). What''s the best way to accomplish this? Do I need to include the deleted_id and forum_id columns in my index, and then pass in the appropriate search terms in the controller? Right now, the model I''m search is Comment, and I have this defined: acts_as_ferret :fields => [ ''comment'' ] Any tips? -- Posted via http://www.ruby-forum.com/.