Updated for reflect change to Rails 4.0.1 from 4.0.0