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

Version Path
mix-rails-0.25.1 mix-rails-vouchers/app/controllers/admix/vouchers_controller.rb
mix-rails-vouchers-0.25.1 app/controllers/admix/vouchers_controller.rb
mix-rails-0.25.0 mix-rails-vouchers/app/controllers/admix/vouchers_controller.rb
mix-rails-vouchers-0.25.0 app/controllers/admix/vouchers_controller.rb
mix-rails-0.24.1 mix-rails-vouchers/app/controllers/admix/vouchers_controller.rb
mix-rails-vouchers-0.24.1 app/controllers/admix/vouchers_controller.rb
mix-rails-0.24.0 mix-rails-vouchers/app/controllers/admix/vouchers_controller.rb
mix-rails-vouchers-0.24.0 app/controllers/admix/vouchers_controller.rb
mix-rails-0.23.1 mix-rails-vouchers/app/controllers/admix/vouchers_controller.rb
mix-rails-vouchers-0.23.1 app/controllers/admix/vouchers_controller.rb
mix-rails-0.23.0 mix-rails-vouchers/app/controllers/admix/vouchers_controller.rb
mix-rails-vouchers-0.23.0 app/controllers/admix/vouchers_controller.rb
mix-rails-0.22.0 mix-rails-vouchers/app/controllers/admix/vouchers_controller.rb
mix-rails-vouchers-0.22.0 app/controllers/admix/vouchers_controller.rb
mix-rails-0.16.0 mix-rails-vouchers/app/controllers/admix/vouchers_controller.rb
mix-rails-vouchers-0.16.0 app/controllers/admix/vouchers_controller.rb
mix-rails-0.15.0 mix-rails-vouchers/app/controllers/admix/vouchers_controller.rb
mix-rails-vouchers-0.15.0 app/controllers/admix/vouchers_controller.rb
mix-rails-0.12.2 mix-rails-vouchers/app/controllers/admix/vouchers_controller.rb
mix-rails-vouchers-0.12.2 app/controllers/admix/vouchers_controller.rb