Skip to content

Commit

Permalink
Merge branch 'issue-720'
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelfranca committed Jan 2, 2013
2 parents e8bb7b3 + 9843120 commit 5ae7ffb
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 68 deletions.
2 changes: 1 addition & 1 deletion lib/simple_form/action_view_extensions/builder.rb
Expand Up @@ -194,7 +194,7 @@ def collection_check_boxes(attribute, collection, value_method, text_method, opt
# end
def simple_fields_for(*args, &block)
options = args.extract_options!
options[:wrapper] ||= self.options[:wrapper]
options[:wrapper] = self.options[:wrapper] if options[:wrapper].nil?
options[:defaults] ||= self.options[:defaults]

if self.class < ActionView::Helpers::FormBuilder
Expand Down

0 comments on commit 5ae7ffb

Please sign in to comment.