Dentro de SitesController algunos usan site_id
This commit is contained in:
parent
75e7fe76fe
commit
baf6d203b8
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue