Skip to content

Commit

Permalink
Removing array_column? from validate_absence_of_matcher (#1562)
Browse files Browse the repository at this point in the history
  • Loading branch information
jarenas9539 authored Dec 26, 2023
1 parent a373661 commit 6d33146
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6d33146

Please sign in to comment.