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
14 15 16 17 18 19 20 21 22 |
# File 'lib/ransack/adapters/mongoid/base.rb', line 14 def type _super = super case _super when BSON::ObjectId, Object :string else _super.name.underscore.to_sym end end |