Skip to content
Snippets Groups Projects
Commit 017a5068 authored by James Lopez's avatar James Lopez
Browse files

fix spec failure

parent bd6b13c6
No related branches found
No related tags found
No related merge requests found
Loading
@@ -154,7 +154,7 @@ module Gitlab
Loading
@@ -154,7 +154,7 @@ module Gitlab
end end
   
def remove_encrypted_attributes! 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_class.encrypted_attributes.each_key do |key|
@relation_hash[key.to_s] = nil @relation_hash[key.to_s] = nil
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment