Sha256: a573ef31597f1127db763d88543c0df68b33c1dcc337c9f30fe500a0d1c652b0
Contents?: true
Size: 1.19 KB
Versions: 3
Compression:
Stored size: 1.19 KB
Contents
# frozen_string_literal: true module Msip module Concerns module Controllers module PaisesController extend ActiveSupport::Concern included do include ActionView::Helpers::AssetUrlHelper def clase "Msip::Pais" end def set_pais @basica = Pais.find(params[:id]) end def atributos_index [ :id, :nombre, :nombreiso_espanol, :latitud, :longitud, :alfa2, :alfa3, :codiso, :nombreiso_ingles, :nombreiso_frances, :div1, :div2, :div3, :observaciones, :ultvigenciaini, :ultvigenciafin, :fechacreacion_localizada, :habilitado ] end def atributos_form atributos_transf_habilitado end def genclase return 'M'; end def pais_params params.require(:pais).permit(*atributos_form) end end # included end end end end
Version data entries
3 entries across 3 versions & 1 rubygems