Fix assets plugin issue on ruby 1.8