2 class UserBlocksController < ApiController
3 before_action :check_api_readable
7 around_action :api_call_handle_error, :api_call_timeout
8 before_action :set_request_formats
11 raise OSM::APIBadUserInput, "No id was given" unless params[:id]
13 @user_block = UserBlock.find(params[:id])
14 rescue ActiveRecord::RecordNotFound
15 raise OSM::APINotFoundError