title: ruby on rails 5.0.0.2 incompatible and conflict with gem mongoid
body: <hr>
  
  <p>ruby version 2.3.0</p>
  
  <p>rails version 5.0.0.beta2</p>
  
  <p>**GEMFILE **  </p>
  
  <pre><code>    source 'https://rubygems.org'
  # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
  gem 'rails', '&gt;= 5.0.0.beta2', '&lt; 5.1'
  #mongoid gem
  gem 'mongoid', '~&gt; 5.1.0'
  # Use Puma as the app server
  gem 'puma'
  # Use SCSS for stylesheets
  gem 'sass-rails', '~&gt; 5.0'
  # Use Uglifier as compressor for JavaScript assets
  gem 'uglifier', '&gt;= 1.3.0'
  # Use CoffeeScript for .coffee assets and views
  gem 'coffee-rails', '~&gt; 4.1.0'
  # See https://github.com/rails/execjs#readme for more supported runtimes
  # gem 'therubyracer', platforms: :ruby
  # Use jquery as the JavaScript library
  gem 'jquery-rails'
  # Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
  gem 'turbolinks'
  # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
  gem 'jbuilder', '~&gt; 2.0'
  # Action Cable dependencies for the Redis adapter
  gem 'redis', '~&gt; 3.0'
  # Use ActiveModel has_secure_password
  # gem 'bcrypt', '~&gt; 3.1.7'
  # Use Capistrano for deployment
  # gem 'capistrano-rails', group: :development
  group :development, :test do
    # Call 'byebug' anywhere in the code to stop execution and get a debugger console
    gem 'byebug'
  end
  group :development do
    # Access an IRB console on exception pages or by using &lt;%= console %&gt; in views
    gem 'web-console', '~&gt; 3.0'
    # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
    gem 'spring'
  end
  # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
  gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
  </code></pre>
  
  <hr>
  
  <p>after run bundle install I see:</p>
  
  <pre><code>Bundler could not find compatible versions for gem "activemodel":
    In snapshot (Gemfile.lock):
      activemodel (= 5.0.0.beta2)
  
    In Gemfile:
  rails (&lt; 5.1, &gt;= 5.0.0.beta2) was resolved to 5.0.0.beta2, which
  depends on
  activerecord (= 5.0.0.beta2) was resolved to 5.0.0.beta2, which
  depends on
          activemodel (= 5.0.0.beta2)
  
  rails (&lt; 5.1, &gt;= 5.0.0.beta2) was resolved to 5.0.0.beta2, which
  depends on
  activerecord (= 5.0.0.beta2) was resolved to 5.0.0.beta2, which
  depends on
          activemodel (= 5.0.0.beta2)
  
      mongoid (~&gt; 4.0.0) was resolved to 4.0.0, which depends on
        activemodel (~&gt; 4.0)
  
      web-console (~&gt; 3.0) was resolved to 3.1.1, which depends on
        activemodel (&gt;= 4.2)
  </code></pre>
  
  <p>Running <code>bundle update</code> will rebuild your snapshot from scratch, using
  only
  the gems in your Gemfile, which may resolve the conflict.</p>