Skip to content

Commit 492bb6e

Browse files
committed
Column#type returns a symbol
1 parent f8cacc9 commit 492bb6e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/active_admin/mongoid/document.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ class ColumnWrapper < SimpleDelegator
2323
def type
2424
_super = super
2525
case _super
26-
when Object; String
27-
when Moped::BSON::ObjectId; String
28-
else _super
26+
when Moped::BSON::ObjectId, Object
27+
:string
28+
else
29+
p _super.name.underscore.to_sym
2930
end
3031
end
3132
end

0 commit comments

Comments
 (0)