Migrate config to Rails 4.