Selaa lähdekoodia

Make the credential tag return an empty string instead of nil

Akinori MUSHA 3 vuotta sitten
vanhempi
commit
d9de12ee7e
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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