devise_masquerade 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
MDc3NTliYzA3MGM1MDc5NjM1NmJlYjEyOTY2NzhiNmUyMTI2NTdlYQ==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
Mjc1YTJhOTI3MzQ2ZTJjYzM1ZDhhMTEyMDQ2Y2UyN2I5YjIzNWQ3Zg==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
YTdhYjlmMTE0YzYxYzJmMWQxOGVjNDY1NWRlZTdmZGFlNWY2Yjk4NzlkZmNl
|
|
10
|
+
YzM3MTQyNGJlY2RiZjFiMTMxZjk1ZThhZDQ0NzQ2MTA1NDZjMmRkNGMyY2Ji
|
|
11
|
+
MGVjZDdmMzFjNTY5MjJkNjQzNzkyNGFiZjE0NGRmNDQ5YzU2Yjc=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
YTFhN2JlMjRkNDJjZTNkNDFiMmE2MTU5MjYyNDY1NjU5Y2IwZWNlNDkzZmU1
|
|
14
|
+
ZDQxNWNlZTNkY2ZiMTI5YWNjZTVlYjYwMGM2MTE0ZTVjYWQzNTA5MmQzZTc1
|
|
15
|
+
NTZjMmFmMTVkYTQxYzlmNzY1MjQxYjBmM2E5ZjMxMjhkYTU1Y2M=
|
|
@@ -19,7 +19,7 @@ class Devise::MasqueradesController < DeviseController
|
|
|
19
19
|
|
|
20
20
|
sign_in owner_user
|
|
21
21
|
|
|
22
|
-
redirect_to
|
|
22
|
+
redirect_to after_back_masquerade_path_for(owner_user)
|
|
23
23
|
end
|
|
24
24
|
|
|
25
25
|
private
|
|
@@ -36,6 +36,10 @@ class Devise::MasqueradesController < DeviseController
|
|
|
36
36
|
"#{Devise.masquerade_param}=#{resource.masquerade_key}"
|
|
37
37
|
end
|
|
38
38
|
|
|
39
|
+
def after_back_masquerade_path_for(resource)
|
|
40
|
+
"/"
|
|
41
|
+
end
|
|
42
|
+
|
|
39
43
|
def save_masquerade_owner_session
|
|
40
44
|
session[session_key] = send("current_#{resource_name}").id
|
|
41
45
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: devise_masquerade
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alexandr Korsak
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-02-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|