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:
committed by
Senén Rodero Rodríguez
parent
326a8a769b
commit
095ec8f267
@@ -57,8 +57,8 @@ section "Creating Budgets" do
|
|||||||
{
|
{
|
||||||
price: 1000000,
|
price: 1000000,
|
||||||
population: 1000000,
|
population: 1000000,
|
||||||
latitude: "40.416775",
|
latitude: Setting["map.latitude"],
|
||||||
longitude: "-3.703790"
|
longitude: Setting["map.longitude"]
|
||||||
}.merge(
|
}.merge(
|
||||||
random_locales_attributes(name: -> { I18n.t("seeds.budgets.groups.all_city") })
|
random_locales_attributes(name: -> { I18n.t("seeds.budgets.groups.all_city") })
|
||||||
)
|
)
|
||||||
@@ -84,8 +84,8 @@ section "Creating Budgets" do
|
|||||||
].each do |heading_params|
|
].each do |heading_params|
|
||||||
districts_group.headings.create!(heading_params.merge(
|
districts_group.headings.create!(heading_params.merge(
|
||||||
price: rand(5..10) * 100000,
|
price: rand(5..10) * 100000,
|
||||||
latitude: "40.416775",
|
latitude: Setting["map.latitude"],
|
||||||
longitude: "-3.703790"
|
longitude: Setting["map.longitude"]
|
||||||
))
|
))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user