sudo_rails 0.6.0 → 0.6.1

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: cde0b8c08400028fee437eac2352ebfeb2676209ef14fc55ce1da3f407a10072
4
- data.tar.gz: 5d150b96bc25cc3366d2d498a4883a3e0a75c56b80b400b35f985791eb27aca4
3
+ metadata.gz: 6ed6d190a51d927747f58d7ce61af01b6dd8ab0edff663969773ebbbebd21b37
4
+ data.tar.gz: 85f9dc0920bdc8226b36053b06c4304b45b55f90a4735b22faed4334a7a87ad1
5
5
  SHA512:
6
- metadata.gz: 4b7fd91b40ad9d1659943ad5ebcb2a160462aa1bc019d1c332a7f36bf82cd7ea404336523c14e4b40d0ee6d6efafb61433407e6d6160e653da40a4673e13d9b0
7
- data.tar.gz: f16c2166aea71899e9b7c8f051ee991e9bbe1e17a18366b16db48b55f029f4a76124f5bccbdf4d02626a4526f8f7d620a5bdced0370caaff5e27383567d10181
6
+ metadata.gz: ef19bd450721d754b582ebe425dcdf30e91758089593743ed16fadd2400ac4cb2e898e336000a840fed37ac69124138cf5105953ff2342cdf3b37b45c6295196
7
+ data.tar.gz: 76a63a6de298a85130286495533149325a752c772bcf0a4d3d33ccb20e9645563397c9dca75f0c9174f46e9924b02d58b89a4de5919067ffd2f00cd2cd540bf7
@@ -6,7 +6,7 @@ module SudoRails
6
6
  if SudoRails.confirm?(self, params[:password])
7
7
  session[:sudo_session] = Time.zone.now.to_s
8
8
  else
9
- flash[:alert] = I18n.t('sudo_rails.invalid_pass')
9
+ flash[:alert] = I18n.t('sudo_rails.invalid_pass', locale: params[:locale])
10
10
  end
11
11
 
12
12
  redirect_to params[:target_path]
@@ -8,6 +8,7 @@
8
8
 
9
9
  <div class='sudo-form'>
10
10
  <%= form_tag '/sudo_rails/confirm' do |f| %>
11
+ <%= hidden_field_tag :locale, I18n.locale %>
11
12
  <%= hidden_field_tag :target_path, params[:target_path] || request.url %>
12
13
  <%= password_field_tag :password, nil, required: true, placeholder: t('sudo_rails.password') %>
13
14
  <%= submit_tag t('sudo_rails.button') %>
@@ -1,3 +1,3 @@
1
1
  module SudoRails
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
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.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - markets
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-01 00:00:00.000000000 Z
11
+ date: 2020-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails