Last active
August 29, 2015 13:58
-
-
Save ream88/10354578 to your computer and use it in GitHub Desktop.
bundle; ruby fail.rb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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