Module: Dis::Controller

Extended by:
ActiveSupport::Concern
Defined in:
lib/dis/controller.rb

Overview

Dis Controller

Adds #send_dis_data for serving stored data from a controller.

class DocumentsController < ApplicationController
include Dis::Controller

def show
  send_dis_data(Document.find(params[:id]))
end
end