userswitch 0.1.6 → 0.1.7

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
  SHA1:
3
- metadata.gz: eb48cdccbf96a8c5c0e6d32c51a8820c8df1ea41
4
- data.tar.gz: 8a92b643448e16d8ec018d6bce0add911ba362ed
3
+ metadata.gz: fe4d0dfc9473ff5a33c98e6d97ef73e56159ffcd
4
+ data.tar.gz: 96cbf02d3ee7bc3964f91a5b4a171399e51ed65a
5
5
  SHA512:
6
- metadata.gz: 993f84bf0063b71a85347bcf9f7bb23401dea1f999e55ef7162bf756c330e23669c9900c3a15b87e79ed3eaa1bdfac35fdd1fabfeab2847e8cbb5bf2d21b9ed1
7
- data.tar.gz: 7518c52bcffbce1b77a88e358fcd13063829236d9eae118b4f3fb894c09a6dda5eea12bfcb35e3ff2150b85998f4cd5e1be54e9d45b47bb7c7611b56c5fadcb6
6
+ metadata.gz: aef0df15e1214e37df753fdf08225de37e73e40a0169dbae00af24c5a41b75592f4310ea7a43f28245e139e4610b59615234db560f2192c66ac1a447ca4122ad
7
+ data.tar.gz: 54850addbf9e4bcc6e17617dec406953c84eab6228c504c71a9c32c378ad1aaa8e94e8ea2ac9835abee9d8dcd1ff2afca2d75bb98067c109e37c04ae0a08e0de
@@ -4,6 +4,7 @@ module Userswitch
4
4
  before_action :authenticate_user!, except: [:switch_user]
5
5
 
6
6
  def switch_user
7
+ sign_out
7
8
  sign_in(params[:role].constantize.find(params[:id]))
8
9
  redirect_to :back
9
10
  end
@@ -1,3 +1,3 @@
1
1
  module Userswitch
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: userswitch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - matija
@@ -82,6 +82,7 @@ files:
82
82
  - us3.png
83
83
  - userswitch-0.1.2.gem
84
84
  - userswitch-0.1.5.gem
85
+ - userswitch-0.1.6.gem
85
86
  - userswitch.gemspec
86
87
  homepage: https://github.com/kodius/userswitch
87
88
  licenses: