Skip to content

Instantly share code, notes, and snippets.

@ream88
Last active August 29, 2015 13:58
Show Gist options
  • Select an option

  • Save ream88/10354578 to your computer and use it in GitHub Desktop.

Select an option

Save ream88/10354578 to your computer and use it in GitHub Desktop.
bundle; ruby fail.rb
require 'bundler'
Bundler.require
Mongoid.configure do |config|
config.connect_to('mongoid_test')
end
class Node
include Mongoid::Document
include Mongoid::Tree
include Mongoid::Versioning
end
parent = Node.create
node = Node.create parent: parent
source 'http://rubygems.org'
# Working
# gem 'mongoid'
# gem 'mongoid-tree'
# Not working
gem 'mongoid', github: 'mongoid/mongoid'
gem 'mongoid-tree', github: 'benedikt/mongoid-tree', branch: 'mongoid-4.0'
gem 'mongoid-versioning', github: 'haihappen/mongoid-versioning'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment