Module: Mongoid::Document
- Included in:
- ActionDispatch::Session::MongoidStore::Session
- Defined in:
- lib/locomotive/mongoid/patches.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#as_json(options = {}) ⇒ Object
18 19 20 21 22 |
# File 'lib/locomotive/mongoid/patches.rb', line 18 def as_json( = {}) attrs = super() attrs["id"] = attrs["_id"] attrs end |