Files
danbooru/app/controllers/artist_urls_controller.rb
evazion ca2d25c042 reltags: remove mark inactive button from artist urls.
In related tags, remove the (X) button next to artist urls for marking
them as inactive. This was broken because it didn't record the change
to the is_active flag in the artist history.
2020-03-20 17:55:08 -05:00

11 lines
271 B
Ruby

class ArtistUrlsController < ApplicationController
respond_to :js, :json, :xml, :html
def index
@artist_urls = ArtistUrl.paginated_search(params)
@artist_urls = @artist_urls.includes(:artist) if request.format.html?
respond_with(@artist_urls)
end
end