make it play nice with rails 4