implement coinbase tests

This commit is contained in:
r888888888
2014-11-29 13:14:46 -08:00
parent 358f22af86
commit cdd17de0af
3 changed files with 16 additions and 93 deletions

View File

@@ -10,7 +10,9 @@ class UserUpgradesController < ApplicationController
user = User.find(user_id)
if user.level < User::Levels::PLATINUM && level >= User::Levels::GOLD && level <= User::Levels::PLATINUM
user.promote_to!(level, :skip_feedback => true)
CurrentUser.scoped(User.admins.first, "127.0.0.1") do
user.promote_to!(level, :skip_feedback => true)
end
end
end