13 lines
320 B
Ruby
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
|