From 027bfdb3eb4edac317f5cdcbb41afe5241ee27b3 Mon Sep 17 00:00:00 2001 From: Michael Hartl Date: Thu, 30 Sep 2010 20:27:58 -0700 Subject: [PATCH] Using superior controller.sign_in method --- app/helpers/sessions_helper.rb | 2 +- spec/spec_helper.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/sessions_helper.rb b/app/helpers/sessions_helper.rb index 9710ac4..0d92e1b 100644 --- a/app/helpers/sessions_helper.rb +++ b/app/helpers/sessions_helper.rb @@ -19,7 +19,7 @@ def signed_in? def sign_out cookies.delete(:remember_token) - self.current_user = nil + current_user = nil end private diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 698c0d1..c212d61 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -38,7 +38,7 @@ ActiveSupport::Dependencies.clear def test_sign_in(user) - controller.current_user = user + controller.sign_in(user) end end end