Add rails call to engine file