Skip to content

Instantly share code, notes, and snippets.

View FunkyloverOne's full-sized avatar

Nazar Matus FunkyloverOne

View GitHub Profile
@FunkyloverOne
FunkyloverOne / script.rb
Last active October 10, 2018 16:03 — forked from janko/script.rb
Workaround for embedded documents in shrine-mongoid
require "mongoid"
require "shrine"
require "shrine/storage/memory"
require "stringio"
Mongoid.configure do |config|
config.clients.default = { hosts: ['localhost:27017'], database: 'my_db' }
config.log_level = :debug
end