Is it possible with acts_as_ferret to somehow restrict the results that are returned?
For instance, I don't want to return results that are logically deleted with acts_as_paranoid (deleted_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/. _______________________________________________ Ferret-talk mailing list [email protected] http://rubyforge.org/mailman/listinfo/ferret-talk

