diff --git a/lib/shoulda/matchers/active_record/encrypt_matcher.rb b/lib/shoulda/matchers/active_record/encrypt_matcher.rb index 689fffbf8..fb165192c 100644 --- a/lib/shoulda/matchers/active_record/encrypt_matcher.rb +++ b/lib/shoulda/matchers/active_record/encrypt_matcher.rb @@ -158,7 +158,7 @@ def options_correct?(*opts) end def encrypted_attributes - @_encrypted_attributes ||= (@subject.class.encrypted_attributes || []) + @_encrypted_attributes ||= @subject.class.encrypted_attributes || [] end def encrypted_attribute_scheme