Provide a bit more information in the deprecation for config.gem

This commit is contained in:
wycats
2010-08-04 02:15:15 -07:00
parent 07c5e5416b
commit 91e4249c02

View File

@@ -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."