Add UserControllersHelpers to assign user in session

This commit is contained in:
Thibault Jouan
2012-03-19 01:20:31 +00:00
parent b25d4d256f
commit 906851f50f
7 changed files with 23 additions and 6 deletions

View File

@@ -0,0 +1,5 @@
module UserControllerHelpers
def sign_in
controller.current_user = Factory.create(:user)
end
end