Geo: ReadOnly middleware improvements
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 (closed))