```ruby
require Rails.root.join('lib/overrides/devise/failure_app')
require Rails.root.join('lib/overrides/hoptoad_notifier/hoptoad_notifier')
```

Work around Bson object_id json
user
```ruby
require Rails.root.join('lib/overrides/devise/failure_app')
require Rails.root.join('lib/overrides/hoptoad_notifier/hoptoad_notifier')

class BSON::ObjectId
  def as_json(*args)
    to_s
  end
end
```
assistant