bug fixes with storage manager

This commit is contained in:
Albert Yi
2018-07-20 14:47:58 -07:00
parent 791a96f689
commit 6fb20fca89
2 changed files with 6 additions and 3 deletions

View File

@@ -176,7 +176,7 @@ class ApplicationController < ActionController::Base
def reset_current_user
CurrentUser.user = nil
CurrentUser.ip_addr = nil
CurrentUser.root_url = root_url
CurrentUser.root_url = root_url.sub(/\/$/, "")
end
def set_started_at_session

View File

@@ -70,8 +70,11 @@ class StorageManager::Match < StorageManager
end
if match
yield manager if block_given?
return manager unless block_given?
if block_given?
return yield(manager)
else
return manager
end
end
end
end