Same for :token, however I don't think this is as severe. Is there a default value for Setting[:foreman_url]? Another solution is to throw an exception if :foreman_url is not defined - I don't think trying to guess it is going to work...