title: uninitialized constant ActiveSupport::EventedFileUpdateChecker in env config file
body: <p>I'm new with Ruby on Rails. After run the 'bundle' command for update/install, When i try to do <code>rails s</code> or <code>rails g mongoid:config</code> console returns this message that start with:</p>
  
  <pre><code>/home/myUser/proyect/config/environments/development.rb:50:in `block in &lt;top (required)&gt;': uninitialized constant ActiveSupport::EventedFileUpdateChecker (NameError)
  </code></pre>
  
  <p>This is my Gemfile (Yes, i want to use MongoDB as the Database):</p>
  
  <pre><code>source 'https://rubygems.org'
  
  
  # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
  gem 'rails', '4.2.6'
  # Use sqlite3 as the database for Active Record
  gem 'sqlite3'
  # Use Mongoid as the database
  gem 'mongoid', '~&gt; 5.1.0'
  # Use bson
  gem 'bson_ext'
  # Use Puma as the app server
  gem 'puma', '~&gt; 3.0'
  #Use Haml for html
  gem 'haml'
  # 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 navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
  gem 'turbolinks', '~&gt; 5.x'
  # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
  gem 'jbuilder', '~&gt; 2.0'
  # Use Redis adapter to run Action Cable in production
  # 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', platform: :mri
  end
  
  group :development do
    # Access an IRB console on exception pages or by using &lt;%= console %&gt; anywhere in the code.
    gem 'web-console'
    gem 'listen', '~&gt; 3.0.5'
    # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
    gem 'spring'
    gem 'spring-watcher-listen', '~&gt; 2.0.0'
  end
  
  # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
  gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
  </code></pre>
  
  <p>And the <strong>config/environments/development.rb</strong> file:</p>
  
  <pre><code>Rails.application.configure do
    # Settings specified here will take precedence over those in config/application.rb.
  
    # In the development environment your application's code is reloaded on
    # every request. This slows down response time but is perfect for development
    # since you don't have to restart the web server when you make code changes.
    config.cache_classes = false
  
    # Do not eager load code on boot.
    config.eager_load = false
  
    # Show full error reports.
    config.consider_all_requests_local = true
  
    # Enable/disable caching. By default caching is disabled.
    if Rails.root.join('tmp/caching-dev.txt').exist?
      config.action_controller.perform_caching = true
  
      config.cache_store = :memory_store
      config.public_file_server.headers = {
        'Cache-Control' =&gt; 'public, max-age=172800'
      }
    else
      config.action_controller.perform_caching = false
  
      config.cache_store = :null_store
    end
  
    # Don't care if the mailer can't send.
    config.action_mailer.raise_delivery_errors = false
  
    config.action_mailer.perform_caching = false
  
    # Print deprecation notices to the Rails logger.
    config.active_support.deprecation = :log
  
    # Raise an error on page load if there are pending migrations.
    config.active_record.migration_error = :page_load
  
    # Debug mode disables concatenation and preprocessing of assets.
    # This option may cause significant delays in view rendering with a large
    # number of complex assets.
    config.assets.debug = true
  
    # Raises error for missing translations
    # config.action_view.raise_on_missing_translations = true
  
    # Use an evented file watcher to asynchronously detect changes in source code,
    # routes, locales, etc. This feature depends on the listen gem.
    config.file_watcher = ActiveSupport::EventedFileUpdateChecker
  end
  </code></pre>