Dentro de SitesController algunos usan site_id

This commit is contained in:
f 2021-08-09 19:44:41 -03:00
parent 75e7fe76fe
commit baf6d203b8

View file

@ -142,7 +142,7 @@ class SitesController < ApplicationController
# En los controladores dentro de este controlador vamos a usar :id
# para obtener el nombre.
def site_id
@site_id ||= params[:id]
@site_id ||= params[:site_id] || params[:id]
end
def site_params