demarches-normaliennes/app/controllers/users_controller.rb

9 lines
217 B
Ruby
Raw Normal View History

2015-09-23 19:20:03 +02:00
class UsersController < ApplicationController
before_action :authenticate_user!
def current_user_dossier dossier_id=nil
dossier_id ||= params[:dossier_id]
current_user.dossiers.find(dossier_id)
end
2015-09-23 19:20:03 +02:00
end