File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -78,10 +78,7 @@ def anchor_attributes_properties(included_fields:)
7878 description ||= column . comment if Anchor . config . use_active_record_comment
7979 check_presence = type . is_a? ( Anchor ::Types ::Maybe ) && Anchor . config . use_active_record_presence
8080 if check_presence && _model_class . validators_on ( model_method ) . any? do |v |
81- if v . is_a? ( ActiveRecord ::Validations ::UniquenessValidator )
82- opts = v . options . with_indifferent_access
83- !( opts [ :allow_nil ] || opts [ :allow_blank ] || opts [ :if ] || opts [ :unless ] || opts [ :on ] )
84- elsif v . is_a? ( ActiveRecord ::Validations ::NumericalityValidator )
81+ if v . is_a? ( ActiveRecord ::Validations ::NumericalityValidator )
8582 opts = v . options . with_indifferent_access
8683 !( opts [ :allow_nil ] || opts [ :if ] || opts [ :unless ] || opts [ :on ] )
8784 elsif v . is_a? ( ActiveRecord ::Validations ::PresenceValidator )
You can’t perform that action at this time.
0 commit comments