We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eed9710 commit 3cc6877Copy full SHA for 3cc6877
lib/anchor/resource.rb
@@ -78,6 +78,9 @@ def anchor_attributes_properties(included_fields:)
78
if v.is_a?(ActiveRecord::Validations::UniquenessValidator)
79
opts = v.options.with_indifferent_access
80
!(opts[:allow_nil] || opts[:allow_blank])
81
+ elsif v.is_a?(ActiveRecord::Validations::NumericalityValidator)
82
+ opts = v.options.with_indifferent_access
83
+ !opts[:allow_nil]
84
else
85
v.is_a?(ActiveRecord::Validations::PresenceValidator)
86
end
0 commit comments