Rails4

fixes  undefined method `upcase' for ActiveModel::Name