Sha256: 89fce04a232bd1d990e1b85b5cc1ed91a84e7ff7754867dd65c716cc5d94f5d1

Contents?: true

Size: 793 Bytes

Versions: 3

Compression:

Stored size: 793 Bytes

Contents

module Msip
  module Concerns
    module Controllers
      module TiposorgController 
        extend ActiveSupport::Concern

        included do
          include ActionView::Helpers::AssetUrlHelper


          def clase 
            "Msip::Tipoorg"
          end

          def set_tipoorg
            @basica = @tipoorg = Tipoorg.find(params[:id])
          end

          def genclase
            return 'M';
          end

          def atributos_index
            [
              :id, 
              :nombre, 
              :observaciones, 
              :fechacreacion_localizada, 
              :habilitado
            ]
          end


          def tipoorg_params
            params.require(:tipoorg).permit( *(atributos_form))
          end

        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
msip-2.2.0.alfa3 lib/msip/concerns/controllers/tiposorg_controller.rb
msip-2.2.0.alfa2 lib/msip/concerns/controllers/tiposorg_controller.rb
msip-2.2a2 lib/msip/concerns/controllers/tiposorg_controller.rb