Skip to content

Commit

Permalink
feat: alert if user is redirected when arriving to rsvp
Browse files Browse the repository at this point in the history
  • Loading branch information
dquach217 committed Aug 16, 2019
1 parent 2561e4a commit 3b6260a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/rsvps_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def check_user_has_questionnaire

def require_accepted_questionnaire
return if @questionnaire.can_rsvp? || @questionnaire.checked_in?

flash[:alert] = "You had not been accepted"
redirect_to new_questionnaires_path
end
end

0 comments on commit 3b6260a

Please sign in to comment.