Update dm-rails to work with rails 4