Sha256: 8169f4183f2f56591d7dd715de5061bfb190b6fbadac91f3b34720fcad55f416

Contents?: true

Size: 292 Bytes

Versions: 4

Compression:

Stored size: 292 Bytes

Contents

module SofaBlogHelper
  
  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
  
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sofa_blog-0.1.3 app/helpers/sofa_blog_helper.rb
sofa_blog-0.1.2 app/helpers/sofa_blog_helper.rb
sofa_blog-0.1.1 app/helpers/sofa_blog_helper.rb
sofa_blog-0.1.0 app/helpers/sofa_blog_helper.rb