Module: Formtastic::Inputs::Base::Html

Defined in:
lib/page_record/formtastic.rb

Instance Method Summary collapse

Instance Method Details

#input_html_optionsObject

This is a replacement method for the original input_html_options method from Formtastic The only thing it does, is merge the attribute_for into the output. The input_html_options is called for all input methods



26
27
28
29
# File 'lib/page_record/formtastic.rb', line 26

def input_html_options
  extend(PageRecord::Helpers)
  input_html_options_org.merge(attribute_for(input_name))
end

#input_html_options_orgObject



18
# File 'lib/page_record/formtastic.rb', line 18

alias_method :input_html_options_org, :input_html_options