I have an admin interface built with Rails Administrate
gem.
It's getting pretty annoying because it sets a presence validation on the belongs_to
model.
Location.validators_on(:parent)
=> [#<ActiveRecord::Validations::PresenceValidator:0x0000000507b6b0 @attributes=[:parent], @options={:message=>:required}>, # <ActiveRecord::Validations::LengthValidator:0x0000000507a710 @attributes= [:parent], @options={:minimum=>1, :allow_blank=>true}>]
How can I skip this validation?
You can override controller functionality