converted _id field to id attribute by patching Mongoid’s as_json method