ZeusWPI/Saruman

View on GitHub
app/controllers/reports_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
class ReportsController < ApplicationController
  include ActiveStorage::SetCurrent

  layout 'reports'

  before_action :authenticate_user!

  def index
    redirect_to action: :items
  end

  def items
    authorize! :manage, Reservation
    @approved_reservations = Reservation.ordered_by_item_name.approved
  end

  def partners
    @approved_reservations = Reservation.ordered_by_item_name.approved
  end

  def item_barcodes

  end

  def partner_barcodes

  end
end