Skip to content

Commit

Permalink
Fixed change id_document status does not save issue
Browse files Browse the repository at this point in the history
  • Loading branch information
lgn21st committed Jul 20, 2014
1 parent f36e14e commit 8013385
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/private/id_documents_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def update
@id_document = current_user.id_document

if @id_document.update_attributes id_docuemnt_params
@id_document.submit if @id_document.unverified?
@id_document.submit! if @id_document.unverified?
redirect_to settings_path, notice: t('.notice')
else
render :edit
Expand Down

0 comments on commit 8013385

Please sign in to comment.