Skip to content

Commit

Permalink
Avoid crash on embedded array document.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marius Seritan authored and mshibuya committed Feb 29, 2012
1 parent 4a922c1 commit fb3b846
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/rails_admin/adapters/mongoid.rb
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ def properties
:datetime
when "Float"
:float
when "Array"
:string
else
# this will likely bomb, will fix as it does
field.type
Expand Down

0 comments on commit fb3b846

Please sign in to comment.