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



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

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