Explorar el Código

Make the credential tag return an empty string instead of nil

Akinori MUSHA hace 3 años
padre
commit
d9de12ee7e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/concerns/liquid_interpolatable.rb

+ 1 - 1
app/concerns/liquid_interpolatable.rb

@@ -383,7 +383,7 @@ module LiquidInterpolatable
       end
 
       def render(context)
-        context.registers[:agent].credential(@credential_name)
+        context.registers[:agent].credential(@credential_name) || ""
       end
     end