`input = {'name' => @p1.name, 'before' => @p2.name}` would be clearer.