Compare commits

..

No commits in common. "72dd6c77385eb14f3ce73839737662606afdb351" and "9ae944bde3449ac42cdd5129b16526aba01e7add" have entirely different histories.

3 changed files with 1 additions and 8 deletions

View File

@ -226,7 +226,7 @@ class Public::JoinsController < ApplicationController
@api = PayPal::SDK::Merchant.new
if @api.ipn_valid?(request.raw_post) # return true or false
@sheet = Sheet.find_by_token(params[:custom].to_s)
@sheet = Renew.find_by_token(params[:custom].to_s)
if params[:payment_status] == "Completed"

View File

@ -34,9 +34,6 @@ class Renew < ActiveRecord::Base
end
end
true
end
YEAR = 2019
@ -52,7 +49,6 @@ class Renew < ActiveRecord::Base
self.return_done = true
self.save
else
puts sheet_year.errors.messages
false
end

View File

@ -18,7 +18,6 @@ class SheetYear < ActiveRecord::Base
before_validation do
self.gift_year = false if !self.gift_year
true
end
@ -40,8 +39,6 @@ class SheetYear < ActiveRecord::Base
end
true