Skip to content

Commit

Permalink
Turbo compatibility: return status unprocessable_entity (#1880)
Browse files Browse the repository at this point in the history
  • Loading branch information
jankeesvw authored Feb 11, 2021
1 parent e1ae45c commit c8c413d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/administrate/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def create
else
render :new, locals: {
page: Administrate::Page::Form.new(dashboard, resource),
}
}, status: :unprocessable_entity
end
end

Expand All @@ -66,7 +66,7 @@ def update
else
render :edit, locals: {
page: Administrate::Page::Form.new(dashboard, requested_resource),
}
}, status: :unprocessable_entity
end
end

Expand Down

0 comments on commit c8c413d

Please sign in to comment.