user_switcher 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a5ebb17d7d0453866c0f74c182403298555cfdb2fd5dd301c2dede6368bf028a
4
- data.tar.gz: 3fe71ea3d7ed7c5a0b7af6f68e081804675b66509354cc7903a7823080d4771f
3
+ metadata.gz: d5b55680a4a4a340356e6bc7e884a2d4ac7012fb49388902671acc917d4ea3a3
4
+ data.tar.gz: 955ec2a604c0f81f0cd51d1e302de8f03dbaeec6a0faa33b257cba4e3cc3146c
5
5
  SHA512:
6
- metadata.gz: 232cda7d8dd162df723e7746fa0b128c66ddf0c73233bf40ea5c62e8c13b52848f0dc67c29a64936fb06b782fc0005965833bb60b0d48f65947d656c91aa15b8
7
- data.tar.gz: 76bf8a37d560402d73e7553237fea7bbe28dceafee499292745f4e9fbbc3c4e319af07b3f8271ace8eb1681c4e4b19f1f1d4ad27fcde64a6bb216c55a5269f34
6
+ metadata.gz: db2a479b55df32df7e74867a912125e9542282164b0e610762fc0bede696b9d8ccc1746bceab537057c4dbf8374709eb65725c725e1f0f4b92d56ff36233489d
7
+ data.tar.gz: 470648e858d1e96ee8a5ebf3db3320d0d6c8a5c85f0c628e406a05d53d855e37a240e06dd285f660df2b4e696b91ee0404656bf67cac401fa589e9ea49f67e9d
@@ -34,7 +34,7 @@ module UserSwitcher
34
34
  logout
35
35
  login(params[:email], params[:password])
36
36
 
37
- redirect_to main_app.root_path
37
+ redirect_back fallback_location: main_app.root_path
38
38
  end
39
39
  end
40
40
 
@@ -1,3 +1,3 @@
1
1
  module UserSwitcher
2
- VERSION = '0.2.0'
2
+ VERSION = '0.3.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: user_switcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ykpythemind