From 04de1e19f55190c8d04ff2d3f9466c49c769d0bb Mon Sep 17 00:00:00 2001 From: Bertocq Date: Fri, 2 Feb 2018 21:51:49 +0100 Subject: [PATCH] Make mappable 100 line length compliant --- app/models/concerns/mappable.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/models/concerns/mappable.rb b/app/models/concerns/mappable.rb index cf85f37e7..19af90432 100644 --- a/app/models/concerns/mappable.rb +++ b/app/models/concerns/mappable.rb @@ -13,7 +13,8 @@ module Mappable return true if skip_map? unless map_location.try(:available?) - errors.add(:skip_map, I18n.t('activerecord.errors.models.map_location.attributes.map.invalid')) + skip_map_error = I18n.t('activerecord.errors.models.map_location.attributes.map.invalid') + errors.add(:skip_map, skip_map_error) end end