add rails engine support