Commit 017a5068 authored by James Lopez's avatar James Lopez

fix spec failure

parent bd6b13c6
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment