ruby version use 2.1.1.
modify model/document.rb