From 6d331462f6ca483bf37999b0c18e3dc69bb8441f Mon Sep 17 00:00:00 2001 From: jarenas9539 <100745775+jarenas9539@users.noreply.github.com> Date: Tue, 26 Dec 2023 19:24:45 +0000 Subject: [PATCH] Removing array_column? from validate_absence_of_matcher (#1562) --- .../matchers/active_model/validate_absence_of_matcher.rb | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/shoulda/matchers/active_model/validate_absence_of_matcher.rb b/lib/shoulda/matchers/active_model/validate_absence_of_matcher.rb index a44d233b7..3f6f66c91 100644 --- a/lib/shoulda/matchers/active_model/validate_absence_of_matcher.rb +++ b/lib/shoulda/matchers/active_model/validate_absence_of_matcher.rb @@ -143,12 +143,6 @@ def reflection @subject.class.reflect_on_association(@attribute) end - def array_column? - @subject.class.respond_to?(:columns_hash) && - @subject.class.columns_hash[@attribute.to_s].respond_to?(:array) && - @subject.class.columns_hash[@attribute.to_s].array - end - def enum_column? @subject.class.respond_to?(:defined_enums) && @subject.class.defined_enums.key?(@attribute.to_s)