Module: SharedHelper

Defined in:
app/helpers/shared_helper.rb

Instance Method Summary collapse

Instance Method Details

#autocomplete_flag_to_password_html(password_autocomplete) ⇒ Object

provide input_html for password autocompletion


4
5
6
7
8
9
10
11
# File 'app/helpers/shared_helper.rb', line 4

def autocomplete_flag_to_password_html(password_autocomplete)
  case password_autocomplete
    when true then {autocomplete: 'on'}
    when false then {autocomplete: 'off'}
    when 'store-only' then {autocomplete: 'off', data: {store: 'on'}}
    else {}
  end
end