9 lines
No EOL
217 B
Ruby
9 lines
No EOL
217 B
Ruby
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
|
|
end |