rails engine plugin for filtering active_record model objects