Module: Searchgasm::Helpers::Form::FormBuilder

Includes:
Shared
Defined in:
lib/searchgasm/helpers/form.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#fields_for_with_searchgasm(*args, &block) ⇒ Object



178
179
180
181
182
183
184
185
186
187
188
# File 'lib/searchgasm/helpers/form.rb', line 178

def fields_for_with_searchgasm(*args, &block)
  search_object = find_searchgasm_object(args)
  if search_object
    searchgasm_options = extract_searchgasm_options!(args)
    new_args = searchgasm_args(args, search_object, searchgasm_options, :fields_for)
    insert_searchgasm_fields(new_args, search_object, searchgasm_options, &block)
    fields_for_without_searchgasm(*new_args, &block)
  else
    fields_for_without_searchgasm(*args, &block)
  end
end