2018-09-07 18:16:29 +02:00
|
|
|
class Champs::DossierLinkController < ApplicationController
|
|
|
|
before_action :authenticate_logged_user!
|
|
|
|
|
|
|
|
def show
|
2018-10-10 21:59:53 +02:00
|
|
|
@position = params[:position]
|
|
|
|
|
2018-09-07 18:16:29 +02:00
|
|
|
if params[:dossier].key?(:champs_attributes)
|
|
|
|
@dossier_id = params[:dossier][:champs_attributes][params[:position]][:value]
|
|
|
|
else
|
|
|
|
@dossier_id = params[:dossier][:champs_private_attributes][params[:position]][:value]
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|