Use consistent map default coordinates in dev_seeds

While we were creating development seeds with map
locations in Madrid the default map coordinates were
placed in Greenwich. Now when we run the
`dev_seed` task we'll have the default map coordinates
and the sample data placed in Madrid.
This commit is contained in:
Senén Rodero Rodríguez
2023-05-23 13:55:57 +02:00
committed by Senén Rodero Rodríguez
parent 326a8a769b
commit 095ec8f267

View File

@@ -57,8 +57,8 @@ section "Creating Budgets" do
{
price: 1000000,
population: 1000000,
latitude: "40.416775",
longitude: "-3.703790"
latitude: Setting["map.latitude"],
longitude: Setting["map.longitude"]
}.merge(
random_locales_attributes(name: -> { I18n.t("seeds.budgets.groups.all_city") })
)
@@ -84,8 +84,8 @@ section "Creating Budgets" do
].each do |heading_params|
districts_group.headings.create!(heading_params.merge(
price: rand(5..10) * 100000,
latitude: "40.416775",
longitude: "-3.703790"
latitude: Setting["map.latitude"],
longitude: Setting["map.longitude"]
))
end
end