exvo-auth 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/exvo-auth.gemspec +1 -1
- data/lib/exvo_auth/controllers/base.rb +5 -0
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.1
|
data/exvo-auth.gemspec
CHANGED
@@ -14,6 +14,11 @@ module ExvoAuth::Controllers::Base
|
|
14
14
|
end
|
15
15
|
end
|
16
16
|
|
17
|
+
def sign_in_and_redirect!(user_id, url = "/")
|
18
|
+
session[:user_id] = user_id
|
19
|
+
redirect stored_location || url
|
20
|
+
end
|
21
|
+
|
17
22
|
def sign_out_and_redirect!(url = sign_out_url)
|
18
23
|
session.delete(:user_id)
|
19
24
|
@current_user = nil
|