Skip to content

Commit

Permalink
Add clarifying comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur Beljajev committed Dec 7, 2018
1 parent b4b1cc5 commit df6d3f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/api/v1/registrant/contacts_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def update
contact.phone = params[:phone] if params[:phone].present?

# Needed to support passing empty array, which otherwise gets parsed to nil
# https://github.com/rails/rails/pull/13157
reparsed_request_json = ActiveSupport::JSON.decode(request.body.string)
.with_indifferent_access
disclosed_attributes = reparsed_request_json[:disclosed_attributes]
Expand Down

0 comments on commit df6d3f9

Please sign in to comment.