Support RailsConfig objects for credentials