Module: PeaceLove::OidHelper
- Defined in:
- lib/peace_love/oid_helper.rb
Instance Method Summary collapse
Instance Method Details
#oid(id) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/peace_love/oid_helper.rb', line 3 def oid(id) if BSON::ObjectId === id id else BSON::ObjectId(id) end end |