Skip to content

Geo: ReadOnly middleware improvements

Gabriel Mazetto requested to merge patch/geo-readonly-json-errors into master

We should handle API requests (JSON) in a different way we handle normal requests.

Current implementation always redirect to root and display error messages using flash[:alert]. This MR adds { message: "..." } type of response when request is under application/json content_type.

This is a small patch/enhancement for Geo (#76)

Merge request reports