Skip to content

Commit

Permalink
Merge pull request #1790 from krishnasrihari/master
Browse files Browse the repository at this point in the history
Pull request for issues 1786
  • Loading branch information
pcreux committed Nov 29, 2012
2 parents c448520 + 7880f25 commit 18438fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/active_admin/view_helpers/fields_for.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ def fields_for_params(params, options = {})
v.map do |v|
{ "#{k}[]" => v }
end
when nil
{ k => '' }
else
raise "I don't know what to do with #{v.class} params: #{v.inspect}"
end
Expand Down

0 comments on commit 18438fc

Please sign in to comment.