dont redirect for payment callback

This commit is contained in:
r888888888
2014-11-29 08:36:41 -08:00
parent a541b18f82
commit e5ec664afa

View File

@@ -11,12 +11,9 @@ class UserUpgradesController < ApplicationController
if user.level < User::Levels::PLATINUM && level >= User::Levels::GOLD && level <= User::Levels::PLATINUM
user.promote_to!(level, :skip_feedback => true)
end
flash[:success] = true
else
flash[:error] = true
end
redirect_to user_upgrade_path
render :nothing => true
end
def new