bug fixes with storage manager
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user