Commit 5d85f339e196c294d5681f7d0fcea1f0dc6c5d61
1 parent
689608e4
Exists in
master
and in
1 other branch
Work around Bson object_id json
Showing
1 changed file
with
6 additions
and
0 deletions
Show diff stats
config/initializers/overrides.rb
1 | require Rails.root.join('lib/overrides/devise/failure_app') | 1 | require Rails.root.join('lib/overrides/devise/failure_app') |
2 | require Rails.root.join('lib/overrides/hoptoad_notifier/hoptoad_notifier') | 2 | require Rails.root.join('lib/overrides/hoptoad_notifier/hoptoad_notifier') |
3 | + | ||
4 | +class BSON::ObjectId | ||
5 | + def as_json(*args) | ||
6 | + to_s | ||
7 | + end | ||
8 | +end |