mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 20:56:21 +00:00
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