Class: Sivel2Gen::Admin::EstadoscivilesController
- Inherits:
-
Msip::Admin::BasicasController
- Object
- Msip::Admin::BasicasController
- Sivel2Gen::Admin::EstadoscivilesController
- Defined in:
- app/controllers/sivel2_gen/admin/estadosciviles_controller.rb
Instance Method Summary collapse
- #clase ⇒ Object
-
#estadocivil_params ⇒ Object
Never trust parameters from the scary internet, only allow the white list through.
- #genclase ⇒ Object
-
#set_estadocivil ⇒ Object
Use callbacks to share common setup or constraints between actions.
Instance Method Details
#clase ⇒ Object
7 8 9 |
# File 'app/controllers/sivel2_gen/admin/estadosciviles_controller.rb', line 7 def clase "Sivel2Gen::Estadocivil" end |
#estadocivil_params ⇒ Object
Never trust parameters from the scary internet, only allow the white list through.
21 22 23 |
# File 'app/controllers/sivel2_gen/admin/estadosciviles_controller.rb', line 21 def estadocivil_params params.require(:estadocivil).permit(*atributos_form) end |
#genclase ⇒ Object
16 17 18 |
# File 'app/controllers/sivel2_gen/admin/estadosciviles_controller.rb', line 16 def genclase return 'M'; end |
#set_estadocivil ⇒ Object
Use callbacks to share common setup or constraints between actions.
12 13 14 |
# File 'app/controllers/sivel2_gen/admin/estadosciviles_controller.rb', line 12 def set_estadocivil @basica = Sivel2Gen::Estadocivil.find(params[:id]) end |