Created
July 29, 2013 22:44
-
-
Save jhoblitt/6108557 to your computer and use it in GitHub Desktop.
#nil? or :undef
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -14,10 +14,10 @@ server { | |
ssl_protocols <%= @ssl_protocols %>; | |
ssl_ciphers <%= @ssl_ciphers %>; | |
ssl_prefer_server_ciphers on; | |
-<% if @auth_basic != :undef -%> | |
+<% unless @auth_basic.nil? -%> | |
auth_basic "<%= @auth_basic %>"; | |
<% end -%> | |
-<% if @auth_basic_user_file != :undef -%> | |
+<% unless @auth_basic_user_file.nil? -%> | |
auth_basic_user_file <%= @auth_basic_user_file %>; | |
<% end -%> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment