Class: Sivel2Gen::Admin::RangosedadController

Inherits:
Msip::Admin::BasicasController
  • Object
show all
Defined in:
app/controllers/sivel2_gen/admin/rangosedad_controller.rb

Instance Method Summary collapse

Instance Method Details

#atributos_indexObject



15
16
17
18
# File 'app/controllers/sivel2_gen/admin/rangosedad_controller.rb', line 15

def atributos_index
  ["id", "nombre", "limiteinferior", "limitesuperior", 
    "observaciones", "fechacreacion_localizada", "habilitado"]
end

#claseObject



7
8
9
# File 'app/controllers/sivel2_gen/admin/rangosedad_controller.rb', line 7

def clase 
  "Sivel2Gen::Rangoedad"
end

#genclaseObject



20
21
22
# File 'app/controllers/sivel2_gen/admin/rangosedad_controller.rb', line 20

def genclase
  return 'M';
end

#rangoedad_paramsObject



24
25
26
# File 'app/controllers/sivel2_gen/admin/rangosedad_controller.rb', line 24

def rangoedad_params
  params.require(:rangoedad).permit(*atributos_form)
end

#set_rangoedadObject



11
12
13
# File 'app/controllers/sivel2_gen/admin/rangosedad_controller.rb', line 11

def set_rangoedad
  @basica = Rangoedad.find(params[:id])
end