delonnewman/dragnet

View on GitHub
app/controllers/workspace_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

class WorkspaceController < ApplicationController
  include Authenticated

  def index
    overview = Dragnet::OverviewPresenter.new(current_user.workspace)

    render :index, locals: { overview: overview }
  end

  def surveys
    listing = Dragnet::SurveyListingPresenter.new(current_user.workspace, params)

    render :surveys, locals: { listing: listing }
  end
end