armandofox/audience1st

View on GitHub
app/controllers/reservations_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
class ReservationsController < ApplicationController

  before_filter :is_logged_in

  # AJAX helper for adding comps

  def update_shows
    @valid_vouchers = ValidVoucher.
      where(:vouchertype_id => params[:vouchertype_id]).
      includes(:showdate => :show).
      order('showdates.thedate')
    render :partial => 'vouchers/reserve_comps_for'
  end

end