Class: Ransack::Adapters::Mongoid::Base::ColumnWrapper

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/ransack/adapters/mongoid/base.rb

Instance Method Summary collapse

Instance Method Details

#typeObject



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