Fixed params conversion error on Rails 4 #140