Files
danbooru/app/controllers/artist_urls_controller.rb
evazion a7dc05ce63 Enable frozen string literals.
Make all string literals immutable by default.
2021-12-14 21:33:27 -06:00

13 lines
302 B
Ruby

# frozen_string_literal: true
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