Merge pull request #3150 from consul/backport-1769-crud_budget_and_usa

[Backport] new CRUD budgets, content blocks and heading map
This commit is contained in:
Julian Nicolas Herrero
2019-01-09 17:35:46 +01:00
committed by GitHub
21 changed files with 98 additions and 58 deletions

View File

@@ -22,7 +22,7 @@ class MapLocation < ActiveRecord::Base
map = new
map.zoom = Budget::Heading::OSM_DISTRICT_LEVEL_ZOOM
map.latitude = heading.latitude.to_f if heading.latitude.present?
map.longitude = heading.longitude.to_f if heading.latitude.present?
map.longitude = heading.longitude.to_f if heading.longitude.present?
map
end