Skip to content

Commit

Permalink
Add comments for FormErrors module
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobyarborough committed Jan 22, 2024
1 parent 9d563ee commit b31f6a2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/controllers/concerns/form_errors.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# frozen_string_literal: true

# Used to rescue form errors that would otherwise raise an exception and display the standard rails 500 error page
# Needed to rescue from resources controller create action for identical/invalid source URIs and Canonical IDs
# Can add additional rescue_from statements as needed for other controllers/forms
module FormErrors
extend ActiveSupport::Concern

Expand Down

0 comments on commit b31f6a2

Please sign in to comment.