This is now unnecessary as it is done at a lower level.
This commit is contained in:
parent
19a19a57a7
commit
608b0337c6
|
|
@ -86,7 +86,7 @@ class ApiRecordingsController < ApiController
|
|||
|
||||
# claim will create a claimed recording for the creator
|
||||
def claim
|
||||
claim = @recording.claim(current_user, params[:name], params[:description], Genre.find_by_id(params[:genre]), params[:is_public], !!params[:upload_to_youtube])
|
||||
claim = @recording.claim(current_user, params[:name], params[:description], Genre.find_by_id(params[:genre]), params[:is_public], params[:upload_to_youtube])
|
||||
|
||||
if claim.errors.any?
|
||||
response.status = :unprocessable_entity
|
||||
|
|
|
|||
Loading…
Reference in New Issue