]> git.openstreetmap.org Git - rails.git/blob - app/controllers/api/user_blocks_controller.rb
Remove unused not_an_admin locale string
[rails.git] / app / controllers / api / user_blocks_controller.rb
1 module Api
2   class UserBlocksController < ApiController
3     authorize_resource
4
5     around_action :api_call_handle_error, :api_call_timeout
6     before_action :set_request_formats
7
8     def show
9       raise OSM::APIBadUserInput, "No id was given" unless params[:id]
10
11       @user_block = UserBlock.find(params[:id])
12     rescue ActiveRecord::RecordNotFound
13       raise OSM::APINotFoundError
14     end
15   end
16 end