summaryrefslogtreecommitdiff
path: root/app/controllers/agents/files_controller.rb
blob: 283b0cd69d38eccd78b3e5a2ff40f081b78b4c82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
module Agents
  class FilesController < ApplicationController
    before_action :load_agent

    def index
      @documents = @agent.files
    end

    private

    def load_agent
      @agent = Agent.find(params[:agent_id])
    end
  end
end