mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Provide a bit more information in the deprecation for config.gem
This commit is contained in:
@@ -65,7 +65,7 @@ module Rails
|
||||
super name, options[:version] || ">= 0"
|
||||
require options[:lib] || name
|
||||
rescue Gem::LoadError
|
||||
msg = "config.gem is deprecated, and you tried to activate the '#{name}' gem using it.\n"
|
||||
msg = "config.gem is deprecated, and you tried to activate the '#{name}' gem (#{options.inspect}) using it.\n"
|
||||
|
||||
if File.exist?("#{Rails.root}/Gemfile")
|
||||
msg << "Please add '#{name}' to your Gemfile."
|
||||
|
||||
Reference in New Issue
Block a user