Skip to content

Commit

Permalink
Simplifica
Browse files Browse the repository at this point in the history
  • Loading branch information
vtamara committed Jan 15, 2025
1 parent c22e1db commit 6e272b6
Showing 1 changed file with 2 additions and 23 deletions.
25 changes: 2 additions & 23 deletions lib/sivel2_gen/concerns/controllers/anexo_casos_controller.rb
Original file line number Diff line number Diff line change
@@ -1,45 +1,24 @@
require 'date'

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

included do
include ActionView::Helpers::AssetUrlHelper

load_and_authorize_resource class: Sivel2Gen::AnexoCaso

before_action :prepara_caso

def clase
"Sivel2Gen::AnexoCaso"
end


def nuevo
end

def destroy
end

def create
end

def update
end

def set_anexo_caso
@anexocaso = Sivel2Gen::AnexoCaso.find(params[:id])
@registro = @anexocaso
end

private

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

Expand Down

0 comments on commit 6e272b6

Please sign in to comment.