redemptions_controller.rb 264 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

class RedemptionsController < ApplicationController
  before_filter :set_redemption, :only => [:cancel]

  def cancel
    @redemption.cancel!

    redirect_to :back
  end

  protected

  def set_redemption
    @redemption = Redemption.find(params[:id])
  end
end