Class: Sivel2Gen::Admin::RangosedadController
- Inherits:
-
Msip::Admin::BasicasController
- Object
- Msip::Admin::BasicasController
- Sivel2Gen::Admin::RangosedadController
- Defined in:
- app/controllers/sivel2_gen/admin/rangosedad_controller.rb
Instance Method Summary collapse
- #atributos_index ⇒ Object
- #clase ⇒ Object
- #genclase ⇒ Object
- #rangoedad_params ⇒ Object
- #set_rangoedad ⇒ Object
Instance Method Details
#atributos_index ⇒ Object
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 |
#clase ⇒ Object
7 8 9 |
# File 'app/controllers/sivel2_gen/admin/rangosedad_controller.rb', line 7 def clase "Sivel2Gen::Rangoedad" end |
#genclase ⇒ Object
20 21 22 |
# File 'app/controllers/sivel2_gen/admin/rangosedad_controller.rb', line 20 def genclase return 'M'; end |
#rangoedad_params ⇒ Object
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_rangoedad ⇒ Object
11 12 13 |
# File 'app/controllers/sivel2_gen/admin/rangosedad_controller.rb', line 11 def set_rangoedad @basica = Rangoedad.find(params[:id]) end |