Migrated to rails 3.2.13 & ruby 2