diff options
-rw-r--r-- | actionpack/lib/action_controller/metal/mime_responds.rb | 9 | ||||
-rw-r--r-- | actionpack/test/controller/mime/responders_test.rb | 2 |
2 files changed, 8 insertions, 3 deletions
diff --git a/actionpack/lib/action_controller/metal/mime_responds.rb b/actionpack/lib/action_controller/metal/mime_responds.rb index 5c869d4ce2..dc572f13d2 100644 --- a/actionpack/lib/action_controller/metal/mime_responds.rb +++ b/actionpack/lib/action_controller/metal/mime_responds.rb @@ -9,15 +9,18 @@ module ActionController #:nodoc: def respond_to(*) raise NoMethodError, "The controller-level `respond_to' feature has " \ "been extracted to the `responders` gem. Add it to your Gemfile to " \ - "continue using this feature. Consult the Rails upgrade guide for " \ - "details." + "continue using this feature:\n" \ + " gem 'responders', '~> 2.0'\n" \ + "Consult the Rails upgrade guide for details." end end def respond_with(*) raise NoMethodError, "The `respond_with' feature has been extracted " \ "to the `responders` gem. Add it to your Gemfile to continue using " \ - "this feature. Consult the Rails upgrade guide for details." + "this feature:\n" \ + " gem 'responders', '~> 2.0'\n" \ + "Consult the Rails upgrade guide for details." end # Without web-service support, an action which collects the data for displaying a list of people diff --git a/actionpack/test/controller/mime/responders_test.rb b/actionpack/test/controller/mime/responders_test.rb index 416e3191e6..032b4c0ab1 100644 --- a/actionpack/test/controller/mime/responders_test.rb +++ b/actionpack/test/controller/mime/responders_test.rb @@ -10,6 +10,7 @@ class ResponderTest < ActionController::TestCase end assert_includes e.message, '`responders` gem' + assert_includes e.message, '~> 2.0' end def test_respond_with @@ -26,5 +27,6 @@ class ResponderTest < ActionController::TestCase end assert_includes e.message, '`responders` gem' + assert_includes e.message, '~> 2.0' end end |