Same thing : it should be done either in the constructor or using bucket configuration in config.yml of your application.