Skip to content
Permalink
Browse files

Merge pull request #2427 from ekylibre/debug-intervention-reading

NoMethodError (undefined method convert_to for nil:NilClass): lib/pro…
  • Loading branch information...
Aquaj committed Mar 14, 2019
2 parents aae6b75 + 688529e commit c5e13f24f2b9433ffaf80229207847b7952b7df0
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/procedo/engine/intervention/reading.rb
@@ -55,7 +55,8 @@ def indicator_name=(name)
end

def value=(val)
@value = val.convert_to(:multi_polygon)
val = val.convert_to(:multi_polygon) if val.respond_to? :convert_to
@value = val
impact_dependencies!
end

0 comments on commit c5e13f2

Please sign in to comment.
You can’t perform that action at this time.