Sha256: aaaaa90c0e34840715dbd4dedb8d47a6e85a076412a83de65bf63d32d266b7c2

Contents?: true

Size: 993 Bytes

Versions: 3

Compression:

Stored size: 993 Bytes

Contents

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

        included do
          include ActionView::Helpers::AssetUrlHelper

          before_action :set_sectororgsocial, 
            only: [:show, :edit, :update, :destroy]
          load_and_authorize_resource  class: Msip::Sectororgsocial

          def clase 
            "Msip::Sectororgsocial"
          end

          def set_sectororgsocial
            @basica = Msip::Sectororgsocial.find(params[:id])
          end

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

          def genclase
            'M'
          end

          def sectororgsocial_params
            params.require(:sectororgsocial).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/sectoresorgsocial_controller.rb
msip-2.2.0.alfa2 lib/msip/concerns/controllers/sectoresorgsocial_controller.rb
msip-2.2a2 lib/msip/concerns/controllers/sectoresorgsocial_controller.rb