sudo_rails 0.4.3 → 0.4.4

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: 1f7a8416a4685bd103980482f9dcdc2a8a9a49d797c6b80e698e60710584e357
4
- data.tar.gz: df751eb16572abea6960f841c66eeb4deaa8ca004e33ce9814358786c53e3060
3
+ metadata.gz: 27632875a2ae396015c0197cc21d643ea90d2db2af36f58a30ca64859a42d0e7
4
+ data.tar.gz: f1b1779fea508d261fbf5b3efef676c282d8f8d52fcdfae96c3e612125a5b5cc
5
5
  SHA512:
6
- metadata.gz: 2b9b0765a6fab1787773fe471d53acc2a5795f4911b6e92074e7bea14066f1b43581a8ee506dfda2fe9affb9648cf9bc1cb778dda490997a241d64f9a259971b
7
- data.tar.gz: c9e88bc579d08dd794e883431042a83ed890470845fa8e76fdf1fb57936e3c40963ff9acc761e267a7e3c8d866f832a43be74783e91bb43e89b6f156a2d4eceb
6
+ metadata.gz: f56a17d44120ec419693ec3b31a4bf6e27bc101615e0dd22f32e73ea341644737a0e1093cfb8d14abc089b1a176981e461a891b28bd8667df285cb8e5c6a5c77
7
+ data.tar.gz: b154b12993013e0a0c1cf631d7e7eb2e5ce084cd072057aabcb6512f3eb192ca492eefc7e4f17211ca3b547b1d924c0f10c8deac442159f8d846fe3a0f269ee1
@@ -5,10 +5,9 @@ module SudoRails
5
5
  def confirm
6
6
  if request.post? && SudoRails.confirm?(self, params[:password])
7
7
  session[:sudo_session] = Time.zone.now.to_s
8
- redirect_to params[:target_path]
9
- else
10
- render 'sudo_rails/confirm_form', layout: SudoRails.get_layout
11
8
  end
9
+
10
+ redirect_to params[:target_path]
12
11
  end
13
12
 
14
13
  private
@@ -20,4 +20,4 @@
20
20
 
21
21
  <div class='sudo-tip'>
22
22
  <%= t('sudo_rails.tip', session_duration: time_ago_in_words(SudoRails.sudo_session_duration.ago)).html_safe %>
23
- </div>
23
+ </div>
@@ -1,3 +1,3 @@
1
1
  module SudoRails
2
- VERSION = "0.4.3"
2
+ VERSION = "0.4.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sudo_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - markets
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-04 00:00:00.000000000 Z
11
+ date: 2019-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails