From a1fbc188567350d22dbda7d4ebac75f9931dacfd Mon Sep 17 00:00:00 2001 From: "adam.harbas@a-net.ba" Date: Thu, 31 Dec 2015 14:55:47 +0100 Subject: [PATCH] Handle undefined method for nil object --- back-office/app/views/items/export_import.html.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/back-office/app/views/items/export_import.html.erb b/back-office/app/views/items/export_import.html.erb index a3f1158..7a2ba0b 100644 --- a/back-office/app/views/items/export_import.html.erb +++ b/back-office/app/views/items/export_import.html.erb @@ -15,5 +15,7 @@

-

<%= @output.html_safe %>
+
<%= unless @output.nil? + @output.html_safe end %> +
<% end %>