Sha256: 0fe6af44d5accc578f5d2f78c710102ed8c51b37f89c2c5b648fd10a6a44057f

Contents?: true

Size: 1.01 KB

Versions: 3

Compression:

Stored size: 1.01 KB

Contents

module Msip
  module Concerns
    module Controllers
      module PerfilesorgsocialController

        extend ActiveSupport::Concern

        included do
          include ActionView::Helpers::AssetUrlHelper

          before_action :set_perfilorgsocial, 
            only: [:show, :edit, :update, :destroy]
          load_and_authorize_resource  class: Msip::Perfilorgsocial

          def clase 
            "Msip::Perfilorgsocial"
          end

          def set_perfilorgsocial
            @basica = Msip::Perfilorgsocial.find(params[:id])
          end

          def atributos_index
            [
              "id", 
              "nombre", 
              "observaciones", 
              "fechacreacion_localizada", 
              "fechadeshabilitacion_localizada"
            ]
          end

          def genclase
            'M'
          end

          def perfilorgsocial_params
            params.require(:perfilorgsocial).permit(*atributos_form)
          end

        end # included

      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/perfilesorgsocial_controller.rb
msip-2.2.0.alfa2 lib/msip/concerns/controllers/perfilesorgsocial_controller.rb
msip-2.2a2 lib/msip/concerns/controllers/perfilesorgsocial_controller.rb