Make exposures compatible with rails 4.1