add current_user_provider so people can override current_user bevior cleanly, see

http://meta.discourse.org/t/amending-current-user-logic-in-discourse/10278
This commit is contained in:
Sam
2013-10-09 15:11:54 +11:00
parent 8e6ae0e278
commit 7993845bfa
15 changed files with 178 additions and 84 deletions
+2 -1
View File
@@ -10,7 +10,8 @@ module Helpers
end
def log_in_user(user)
session[:current_user_id] = user.id
provider = Discourse.current_user_provider.new(request.env)
provider.log_on_user(user,session,cookies)
end
def fixture_file(filename)