Do Rails settings if Rails constant is defined