Skip to content
Browse files

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

  • Loading branch information...
1 parent 07c5e54 commit 91e4249c028469bc284e9ae97d8bafc4966ab18d @wycats wycats committed Aug 4, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails/engine/configuration.rb
View
2 railties/lib/rails/engine/configuration.rb
@@ -65,7 +65,7 @@ def gem(name, options = {})
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."

0 comments on commit 91e4249

Please sign in to comment.
Something went wrong with that request. Please try again.