Rename map settings keys

This commit is contained in:
Senén Rodero Rodríguez
2017-08-08 11:56:46 +02:00
parent 3b04f881e7
commit 5815389cb8
7 changed files with 26 additions and 20 deletions

View File

@@ -15,9 +15,9 @@ class Admin::SettingsController < Admin::BaseController
end
def update_map
Setting["map.latitude"] = params[:latitude].to_f
Setting["map.longitude"] = params[:longitude].to_f
Setting["map.zoom"] = params[:zoom].to_i
Setting["map_latitude"] = params[:latitude].to_f
Setting["map_longitude"] = params[:longitude].to_f
Setting["map_zoom"] = params[:zoom].to_i
redirect_to admin_settings_path, notice: t("admin.settings.index.map.flash.update")
end