# File lib/dragonfly/data_storage/mongo_data_store.rb, line 66 def connection @connection ||= if hosts Mongo::ReplSetConnection.new(hosts, connection_opts) else Mongo::Connection.new(host, port, connection_opts) end end