pasosdeJesus/sivel2_gen

View on GitHub
lib/sivel2_gen/concerns/controllers/caso_presponsables_controller.rb

Summary

Maintainability
A
55 mins
Test Coverage
require 'date'

module Sivel2Gen
  module Concerns
    module Controllers
      module CasoPresponsablesController
        extend ActiveSupport::Concern

        included do
          include ActionView::Helpers::AssetUrlHelper

          load_and_authorize_resource class: Sivel2Gen::Caso
          before_action :prepara_caso

          def new
          end # def nuevo

          def destroy
          end

          def create
          end

          def update
          end

          private

          def prepara_caso
            @caso = Sivel2Gen::Caso.new(
              caso_presponsable: [Sivel2Gen::CasoPresponsable.new])
          end
        end # included

      end 
    end
  end
end