Files
danbooru/app/controllers/artist_urls_controller.rb
evazion 60a26af6e3 rails: add 'URL' inflection.
Make it so we can write `ArtistURL` instead of `ArtistUrl`.
2022-02-22 00:17:53 -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