lib/soaspec/generator/lib/new_rest_service.rb.erb in soaspec-0.2.30 vs lib/soaspec/generator/lib/new_rest_service.rb.erb in soaspec-0.2.31

- old
+ new

@@ -15,10 +15,10 @@ # Filename of oauth2 file to use for oauth2 parameters. 'Soaspec.credentials_folder' can be set to globally defined a folder with credentials # This will add a default 'Authorization: Bearer access_token' header if 'Authorization' is not specified in headers # The '.yml' extension will be added automatically if not present. # oauth2_file 'filename.yml' - <% if @basic_auth_user %> + <% unless @basic_auth_user&.empty? %> # File with basic auth credentials is within the '<%= Soaspec.credentials_folder %>' folder basic_auth_file '<%= @name.snakecase %>.yml' <% else %> # Filename of YAML with basic auth parameters in it 'Soaspec.credentials_folder' can be set to globally defined a folder with credentials # It is of the format \ No newline at end of file