Module: SofaBlogHelper

Defined in:
app/helpers/sofa_blog_helper.rb

Instance Method Summary collapse

Instance Method Details

#sofa_blog_form_for(record_or_name_or_array, *args, &proc) ⇒ Object



3
4
5
6
7
8
9
10
# File 'app/helpers/sofa_blog_helper.rb', line 3

def sofa_blog_form_for(record_or_name_or_array, *args, &proc)
  options = args.extract_options!
  form_for(
    record_or_name_or_array,
    *(args << options.merge(:builder => SofaBlog.config.form_builder.to_s.constantize)),
    &proc
  )
end