Class: Formtastic::Inputs::CepInput

Inherits:
StringInput
  • Object
show all
Defined in:
lib/formtastic/inputs/cep_input.rb

Instance Method Summary collapse

Instance Method Details

#input_html_optionsObject



4
5
6
7
8
9
10
11
# File 'lib/formtastic/inputs/cep_input.rb', line 4

def input_html_options
  opts = super
  data = (opts[:data] || {}).merge(fields: load_fields(input_options[:fields]),
                                   url: load_url(input_options[:url]),
                                   scope: load_scope(opts[:id]),
                                   cep_regex: cep_regex)
  opts.merge(class: load_class(opts[:class]), data: data)
end