Gem cache is out of date

My setup: Rails 2.3.10, Ruby 1.8.7, Gem 1.6.2, Mac OS X

I created a scaffold and received this warning

/Library/Ruby/Gems/1.8/gems/rails-2.3.10/lib/rails_generator/lookup.rb:212:Warning: Gem::cache is deprecated and will be removed on or after August 2011. Use Gem::source_index. /Library/Ruby/Gems/1.8/gems/rails-2.3.10/lib/rails_generator/lookup.rb:234:Warning: Gem::cache is deprecated and will be removed on or after August 2011. Use Gem::source_index. 

I do not intend to modify lookup.rb since it is a Rails generator file, so how can I fix this warning?

+4
source share
2 answers

Obsolescence warnings show us what will be changed / removed in future versions of rails

I found out an article that shows how to disable these warnings.

For one stop, the general solution is:

 ActiveSupport::Deprecation.silenced = true 

The article has several more subtle solutions.

+3
source

Do not worry, as the generator file will be updated before this date.

+1
source

Source: https://habr.com/ru/post/1344532/


All Articles