From 017a5068f60c0a7fb058422c5d8d2740f36084a4 Mon Sep 17 00:00:00 2001 From: James Lopez Date: Mon, 30 Jan 2017 14:26:05 +0100 Subject: fix spec failure --- lib/gitlab/import_export/relation_factory.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gitlab/import_export/relation_factory.rb b/lib/gitlab/import_export/relation_factory.rb index dd7f9e2fd65..0319d7707a8 100644 --- a/lib/gitlab/import_export/relation_factory.rb +++ b/lib/gitlab/import_export/relation_factory.rb @@ -154,7 +154,7 @@ module Gitlab end def remove_encrypted_attributes! - return if relation_class.encrypted_attributes.empty? + return unless relation_class.respond_to?(:encrypted_attributes) && relation_class.encrypted_attributes.any? relation_class.encrypted_attributes.each_key do |key| @relation_hash[key.to_s] = nil -- cgit v1.2.1