[PMT-1] - Updated to work with new Rails.