Check `if new_assign.directory_path.present?` for no file location
Check `if new_assign.directory_path.present?` for no file location

>      new_assign.update_attribute('created_at',Time.now)
>      new_assign.update_attribute('updated_at',Time.now)
> -
> +    if new_assign.directory_path != nil
> +      new_assign.update_attribute('directory_path',new_assign.directory_path+'_copy')
> +    end

This needs to check `if new_assign.directory_path.present?` (the opposite of `.blank?`), since assignments with no directory_path have an empty string as the value for this field instead of nil.

akshayjain114/expertiza,rmmaily/expertiza,ApertureScienceInnovators/expertiza,urmilparikh95/expertiza,michaelamoran/expertiza,kira0992/expertiza,rmmaily/expertiza,rmmaily/expertiza,akshayjain114/expertiza,rmmaily/expertiza,michaelamoran/expertiza,joshio1/expertiza,urmilparikh95/expertiza,urmilparikh95/expertiza,expertiza/expertiza,redsock88/expertiza,redsock88/expertiza,redsock88/expertiza,redsock88/expertiza,ApertureScienceInnovators/expertiza,ApertureScienceInnovators/expertiza,expertiza/expertiza,urmilparikh95/expertiza,KunmiaoYang/expertiza,arpitashekhar/expertiza,arpitashekhar/expertiza,akshayjain114/expertiza,sid5788/expertiza,KunmiaoYang/expertiza,KunmiaoYang/expertiza,KunmiaoYang/expertiza,joshio1/expertiza,sid5788/expertiza,joshio1/expertiza,kira0992/expertiza,expertiza/expertiza,kira0992/expertiza,akshayjain114/expertiza,arpitashekhar/expertiza,arpitashekhar/expertiza,michaelamoran/expertiza,kira0992/expertiza,mhhassan/expertiza,joshio1/expertiza,mhhassan/expertiza,mhhassan/expertiza,michaelamoran/expertiza,sid5788/expertiza,sid5788/expertiza,mhhassan/expertiza,ApertureScienceInnovators/expertiza,expertiza/expertiza