Class: MaskedInput

Inherits:
SimpleForm::Inputs::StringInput
  • Object
show all
Defined in:
lib/simple_form_custom_inputs/simple_form/masked_input.rb

Instance Method Summary collapse

Instance Method Details

#input(wrapper_options) ⇒ Object



2
3
4
5
6
# File 'lib/simple_form_custom_inputs/simple_form/masked_input.rb', line 2

def input(wrapper_options)
  input_html_options[:data] ||= {}
  input_html_options[:class] << 'masked'
  super
end