"if rails_engine?" needs to be checked before configuration.