Files
danbooru/app/controllers/dtext_links_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
320 B
Ruby

# frozen_string_literal: true
class DtextLinksController < ApplicationController
respond_to :html, :xml, :json
def index
@dtext_links = DtextLink.paginated_search(params)
@dtext_links = @dtext_links.includes(linked_wiki: :tag, model: :tag) if request.format.html?
respond_with(@dtext_links)
end
end