Sha256: 28e3cdd7afbd74b56108d2d504d8717428eb65d69ac6a3849a5184be5c7d401b

Contents?: true

Size: 181 Bytes

Versions: 4

Compression:

Stored size: 181 Bytes

Contents

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
simple_form_custom_inputs-0.1.0 lib/simple_form_custom_inputs/simple_form/masked_input.rb
simple_form_custom_inputs-0.0.4 lib/simple_form_custom_inputs/simple_form/masked_input.rb
simple_form_custom_inputs-0.0.3 lib/simple_form_custom_inputs/simple_form/masked_input.rb
simple_form_custom_inputs-0.0.2 lib/simple_form_custom_inputs/simple_form/masked_input.rb