Class: Sivel2Gen::Admin::EstadoscivilesController

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

Instance Method Summary collapse

Instance Method Details

#claseObject



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

def clase 
  "Sivel2Gen::Estadocivil"
end

#estadocivil_paramsObject

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

#genclaseObject



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

def genclase
  return 'M';
end

#set_estadocivilObject

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