fixes #3730
This commit is contained in:
18
app/controllers/artist_urls_controller.rb
Normal file
18
app/controllers/artist_urls_controller.rb
Normal file
@@ -0,0 +1,18 @@
|
||||
class ArtistUrlsController < ApplicationController
|
||||
respond_to :json
|
||||
before_action :member_only
|
||||
|
||||
def update
|
||||
@artist_url = ArtistUrl.find(params[:id])
|
||||
@artist_url.update(artist_url_params)
|
||||
respond_with(@artist_url)
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def artist_url_params
|
||||
permitted_params = %i[is_active]
|
||||
|
||||
params.fetch(:artist_url, {}).permit(permitted_params)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user