2 class UserBlocksController < ApiController
5 around_action :api_call_handle_error, :api_call_timeout
6 before_action :set_request_formats
9 raise OSM::APIBadUserInput, "No id was given" unless params[:id]
11 @user_block = UserBlock.find(params[:id])
12 rescue ActiveRecord::RecordNotFound
13 raise OSM::APINotFoundError