From 4dcdcf1d302e1fc28d56e579e04ef64dcb581dd3 Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Mon, 9 Oct 2017 22:48:51 +0200 Subject: [PATCH] Fixed bug: Rails model lookup fails in Zendesk import. --- lib/import/zendesk/ticket_field_factory.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/import/zendesk/ticket_field_factory.rb b/lib/import/zendesk/ticket_field_factory.rb index de787c54f..14138ee8e 100644 --- a/lib/import/zendesk/ticket_field_factory.rb +++ b/lib/import/zendesk/ticket_field_factory.rb @@ -21,7 +21,7 @@ module Import def skip?(field, *_args) # check if the Ticket object already has a same named column / attribute # so we want to skip instead of importing it - Ticket.column_names.include?( local_attribute(field) ) + ::Ticket.column_names.include?( local_attribute(field) ) end private