only load engine integration if Rails is actually defined