The following worked for me:
add to Gemfile:
gem "bson"
gem "moped", github: "mongoid/moped"
bundle install
add to application.rb:
require "bson"
require "moped"
Moped::BSON = BSON
Answer from: https://github.com/mongoid/mongoid/issues/3455