Make gem play nice with rails.