spring/application.rb:161 undefined method `reject!' for nil:NilClass (NoMethodError) : <p>I am using ruby 2.5 and rails 5.0.1 for my application. when i try to run console or generate controller or migration it gives me this error:</p>

<p><code>Running via Spring preloader in process 6473
Loading development environment (Rails 5.0.1)
Traceback (most recent call last):
/home/abwahed/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/spring-2.0.1/lib/spring/application.rb:161:in</code>fork': undefined method <code>reject!' for nil:NilClass (NoMethodError)</code></p>
