Module: FormTranslation::ViewHelper

Defined in:
lib/form_translation/view_helper.rb

Instance Method Summary collapse

Instance Method Details

#simple_translated_form_for(object, *args, &block) ⇒ Object



10
11
12
13
14
15
# File 'lib/form_translation/view_helper.rb', line 10

def simple_translated_form_for(object, *args, &block)
  options = args.extract_options!
    simple_form_for(object,
      *(args << options.merge(builder: FormTranslation::CustomFormBuilder)),
      &block)
end

#simple_translated_nested_form_for(object, *args, &block) ⇒ Object



18
19
20
21
22
23
# File 'lib/form_translation/view_helper.rb', line 18

def simple_translated_nested_form_for(object, *args, &block)
  options = args.extract_options!
  simple_nested_form_for(object,
    *(args << options.merge(builder: FormTranslation::NestedCustomFormBuilder)),
    &block)
end