Currently when using a non-existing unit (I used :km instead :kms), no errors are shown, but when I tried to query a distance, the resulting query was invalid due to missing a multiplier, which is looked up by its identifier.
This can be prevented if the options passed to acts_as_mappable would be validated in some kind of way.
Currently when using a non-existing unit (I used
:km
instead:kms
), no errors are shown, but when I tried to query a distance, the resulting query was invalid due to missing a multiplier, which is looked up by its identifier.This can be prevented if the options passed to
acts_as_mappable
would be validated in some kind of way.