Sha256: 30ceac440b6413809e04598c5e0e84cbc74a8d8019b7d1bc5ae32a2102e79efa
Contents?: true
Size: 504 Bytes
Versions: 28
Compression:
Stored size: 504 Bytes
Contents
class Admix::VouchersController < Admix::InheritedController before_filter :voucher, only: [:print, :users, :delete] def print @users = @voucher.users.where(confirmed: true).order_by(name: 1) render layout: false end def users @users = @voucher.users.order_by(confirmed: -1, name: 1) end def delete_user @voucher.users.find(params[:user_id]).delete redirect_to admix_voucher_users_url end private def voucher @voucher = Voucher.find(params[:id]) end end
Version data entries
28 entries across 28 versions & 2 rubygems