Class: Ransack::Adapters::Mongoid::Base::ColumnWrapper
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Ransack::Adapters::Mongoid::Base::ColumnWrapper
- Defined in:
- lib/ransack/adapters/mongoid/base.rb
Instance Method Summary collapse
Instance Method Details
#type ⇒ Object
18 19 20 21 22 23 24 25 26 |
# File 'lib/ransack/adapters/mongoid/base.rb', line 18 def type _super = super case _super when BSON::ObjectId, Object :string else _super.name.underscore.to_sym end end |