Update category.rb

for small memory environment.